Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow

醉酒当歌 提交于 2020-12-29 10:43:53

问题


I downloaded the latest stable Anaconda install off the Continuum website which turned out to be Anaconda 4.3.1 (64-bit) and comes with Python 3.6.0. I am in a Windows 10 environment.

However pip3 is missing and I cannot install any Python 3.x packages via pip3.

What am I doing wrong?


回答1:


If you do not have another environment installed python 3+ will default to just pip I believe since pip3 is just an alias for pip.

pip install --upgrade pip

or You can do it with the associated Python binary too; if it executable as python3, then use that:

python3 -m pip install --upgrade pip

after that check:

pip --version 

otherwise just try pip-3.6

for tensorflow on conda:

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl 

for python 3.6 due to conda providing the 3.5 one: from

pip install https://testpypi.python.org/packages/db/d2/876b5eedda1f81d5b5734277a155fa0894d394a7f55efa9946a818ad1190/tensorflow-0.12.1-cp36-cp36m-win_amd64.whl

Since this wheel had a version that is undesirable we could instead install the wheel directly from gohlke's windows binaries repository :
download the wheel for python 3.6 from here and then install the wheel:

cd to the directory containing .whl file:

pip install some-package.whl



回答2:


easy_install pip

I used it, for the problem of pip installation in miniconda. sometimes the pip is not properly installed but it claims yes




回答3:


Solution:- (Note:- This will surely work for all!!)

Step 1:- conda search python

Step 2:- conda install python=3.5.2

Step 3:- pip install tensorflow

Step 4:- import tensorflow as tf




回答4:


I have Windows10, 64bit, Anaconda4.3 with Python 3.6.

Karthik' soluton worked for me. Before that I tried everything including "conda create -n tensorflow python=3.5", but it did not work (although "python --version" gave 3.5.3).




回答5:


you should be able to install tensorflow using

$ conda install -c conda-forge tensorflow



来源:https://stackoverflow.com/questions/43412245/installed-anaconda-4-3-1-64-bit-which-contains-python-3-6-but-pip3-missing-ca

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!