我通过Anaconda安装了Python 3.5(3.5.6),现在我希望能够使用Python 3.7,将3.5保留为默认值(一个python "insert script name"
将在命令行上运行) 。我命令计算机激活它,但是它不起作用。
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> conda create --name seiska python=3.7
WARNING: A space was detected in your requested environment path
'C:\Program Files\Anaconda3\envs\seiska'
Spaces in paths can sometimes be problematic.
Solving environment: done
## Package Plan ##
environment location: C:\Program Files\Anaconda3\envs\seiska
added / updated specs:
- python=3.7
The following NEW packages will be INSTALLED:
ca-certificates: 2018.03.07-0
certifi: 2018.10.15-py37_0
openssl: 1.1.1a-he774522_0
pip: 18.1-py37_0
python: 3.7.1-he44a216_5
setuptools: 40.6.2-py37_0
vc: 14.1-h0510ff6_4
vs2015_runtime: 14.15.26706-h3a45250_0
wheel: 0.32.3-py37_0
wincertstore: 0.2-py37_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use:
# > activate seiska
#
# To deactivate an active environment, use:
# > deactivate
#
# * for power-users using bash, you must source
#
PS C:\WINDOWS\system32> activate seiska
PS C:\WINDOWS\system32> python
Python 3.5.6 |Anaconda 4.2.0 (64-bit)| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
答案 0 :(得分:2)
在“开始”菜单中,您必须打开“ Anaconda Prompt”(不同于常规“命令提示符”)。从那里激活您的环境。