虽然我在答案和谷歌中尝试了所有可能的方法,但它确实无法工作!
在我们大学,我们需要使用python 3.6.4(可能的最新版本)。但是,当使用anaconda进行安装时(参见下面的命令),我只能得到3.6.2。因为很久以前在2017.07.17发布了3.6.2,所以我很困惑为什么没有更新的版本。
[更新]关于:我尝试安装3.6.4但失败了。 [更新]关于:使用deafult渠道,但获得3.6.3
如果有人可以帮助我在anaconda中安装最新的python ,我将不胜感激。非常感谢你!
详细说明:
Inputed
conda create -n csc python=3.6
并且只安装了版本为
的python(csc) C:\Users\[MYUSERNAME]>python --version
Python 3.6.2 :: Continuum Analytics, Inc.
更新:
(csc) C:\Users\[NAME]>conda install python=3.6.4
(C:\Anaconda3) C:\Users\[NAME]>conda create -n csc python=3.6.4
两者都导致:
Fetching package metadata .................
PackageNotFoundError: Packages missing in current channels:
- python 3.6.4*
We have searched for the packages in the following channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
- https://repo.continuum.io/pkgs/main/win-64
- https://repo.continuum.io/pkgs/main/noarch
- https://repo.continuum.io/pkgs/free/win-64
- https://repo.continuum.io/pkgs/free/noarch
- https://repo.continuum.io/pkgs/r/win-64
- https://repo.continuum.io/pkgs/r/noarch
- https://repo.continuum.io/pkgs/pro/win-64
- https://repo.continuum.io/pkgs/pro/noarch
- https://repo.continuum.io/pkgs/msys2/win-64
- https://repo.continuum.io/pkgs/msys2/noarch
我甚至尝试过:
(csc) C:\Users\fzyzcjy>conda update python
但只会导致:
Fetching package metadata .................
Solving package specifications: .
# All requested packages already installed.
# packages in environment at C:\Anaconda3\envs\csc:
#
python 3.6.2 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
UPDATE2:尝试使用默认频道 - 仅3.6.3!
(C:\Anaconda3) C:\Users\fzyzcjy>conda create -n csc1002 python=3.6 --channel anaconda
Fetching package metadata ...................
Solving package specifications: .
Package plan for installation in environment C:\Anaconda3\envs\csc1002:
The following NEW packages will be INSTALLED:
certifi: 2017.11.5-py36hb8ac631_0 anaconda
pip: 9.0.1-py36h226ae91_4 anaconda
python: 3.6.3-h3b118a2_4 anaconda
setuptools: 36.5.0-py36h65f9e6e_0 anaconda
vc: 14-h2379b0c_2 anaconda
vs2015_runtime: 14.0.25420-0 anaconda
wheel: 0.30.0-py36h6c3ec14_1 anaconda
wincertstore: 0.2-py36h7fe50ca_0 anaconda
更新3:使用@James'建议频道终于有效了!
(csc) C:\Users\[NAME]>conda install python=3.6.4 --channel conda-forge
Fetching package metadata ...................
Solving package specifications: .
Package plan for installation in environment C:\Anaconda3\envs\csc:
The following packages will be UPDATED:
python: 3.6.2-0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free --> 3.6.4-0 conda-forge
Proceed ([y]/n)? y
python-3.6.4-0 100% |###############################| Time: 0:00:19 964.70 kB/s
(csc) C:\Users\fzyzcjy>python --version
Python 3.6.4
答案 0 :(得分:4)
Anaconda安装的基础环境在最新版本中使用3.6.4。但是,您可以使用Conda轻松创建新环境以获取最新版本。在命令行运行:
conda create --name myenv python=3.6.4 --channel conda-forge
这将创建一个新环境。要激活环境,请运行:
(on Windows)> activate myenv
(on Linux )$ source activate myenv
答案 1 :(得分:1)