我已经在Windows 10上安装了Anaconda,它附带了Spyder和Python 3.6,但是我希望升级到python3.7
使用Python 3.7创建Anaconda环境很容易:conda create --name py37 python=3.7
或:conda create --name py370 python=3.7.0 --channel conda-forge
不过,在这个环境中启动Spyder会将其返回到Python3.6。
我尝试直接在Spyder的Tools -> Settings中指定python.exe(用于3.7版),但是在重新启动Spyder内核时无法启动,并且将显示它们需要包:ipykernel和cloudpickle。
当试图在环境中conda install它们时,会出现以下情况:The following packages will be DOWNGRADED:
python: 3.7.0-hea74fb7_0 --> 3.6.6-hea74fb7_0
这将使python再次从3.7降到3.6。
我最后的尝试是使用命令:conda install python==3.7
输出失败Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- python-dateutil -> python[version='>=2.7,<2.8.0a0']
- python-dateutil -> six
- python==3.7
Use "conda info " to see the dependencies for each package.
问题不在于如何将Conda升级到Python 3.7,而在于如何让Spyder在python3.7自己的环境中使用它