已安装包含Python 3.6但缺少pip3的Anaconda 4.3.1(64位),无法安装tensorflow [英] Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow

查看:120
本文介绍了已安装包含Python 3.6但缺少pip3的Anaconda 4.3.1(64位),无法安装tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Continuum网站上下载了最新的稳定版本的Anaconda安装程序,结果证明是Anaconda 4.3.1(64位),并带有Python 3.6.0.我在Windows 10环境中.

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.

但是缺少pip3,我无法通过pip3安装任何Python 3.x软件包.

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

我做错了什么?

推荐答案

如果您未安装其他环境,我相信python 3+将默认为pip,因为pip3只是pip的别名.

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

或者您也可以使用关联的Python二进制文件来实现;如果它可以以python3格式执行,则使用该命令:

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

在检查之后:

pip --version 

否则只需尝试 pip-3.6

关于conda上的张量流:

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 

对于python 3.6,由于conda提供了3.5版本:来自

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

由于此轮子的版本不理想,因此我们可以安装直接从gohlke的Windows Binaries存储库中提取轮子:
此处下载python 3.6的轮子,然后安装轮子:

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 到包含 .whl 文件的目录:

pip install some-package.whl

这篇关于已安装包含Python 3.6但缺少pip3的Anaconda 4.3.1(64位),无法安装tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆