简体   繁体   English

将Python3.7添加到Anaconda路径

[英]Adding python3.7 to Anaconda path

I have anaconda installed on my ubuntu 17.10. 我在Ubuntu 17.10上安装了anaconda。 It works fine for python 2.7 but I can't use it in python 3.7. 它适用于python 2.7,但是我不能在python 3.7中使用。 Is there a way I can add python3.7 to the anaconda path? 有没有办法将python3.7添加到anaconda路径?

The short answer is no. 最简洁的答案是不。 Anaconda (the company) has not packaged Python 3.7 yet (probably due to it being in beta still). Anaconda(该公司)尚未打包Python 3.7(可能是因为它仍处于beta版)。 In addition, no other channel (that I'm aware of) has packaged Python 3.7. 此外,(我知道的)其他渠道都没有打包Python 3.7。 You can search your configured channels by typing 您可以输入以下内容来搜索已配置的频道

conda search python=3.7

or you can look online at Anaconda.org: https://anaconda.org/search?q=%22python%22&sort=_name&sort_order=1&reverse=true&page=14 :或者你可以在网上Anaconda.org看https://anaconda.org/search?q=%22python%22&sort=_name&sort_order=1&reverse=true&page=14

(that search directs you to the page of the results that as of 07-FEB-2018 shows the Python packages that are uploaded to Anaconda.org. The link/relevant page may change in the future as people add or delete packages) (该搜索会将您定向到截至2018年2月7日的结果页面,其中显示了已上传到Anaconda.org的Python软件包。将来,随着人们添加或删除软件包,链接/相关页面可能会更改)

The long answer is that you can build Python 3.7 yourself from source, if you're so inclined. 长的答案是,如果您愿意,可以从源代码自己构建Python 3.7。 But that is outside the scope of this Q/A. 但这不在本问答的范围内。

You can create a Python 3.7 environment via: 您可以通过以下方式创建Python 3.7环境:

$conda create -n Py37 python=3.7

This will create a new anaconda environment named Py37 containing the python=3.7 package. 这将创建一个名为Py37的新蟒蛇环境,其中包含python = 3.7软件包。

Afterwards, you can activate the environment by running: 之后,您可以通过运行以下命令激活环境:

$conda activate Py37

and it should work right out of the box! 它应该立即可用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM