gpt4 book ai didi

python - python /畅达/ python /Windows : how to start and activate a conda environment?

转载 作者:可可西里 更新时间:2023-11-01 11:42:57 25 4
gpt4 key购买 nike

我通过 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.
>>>

最佳答案

在“开始”菜单中,您必须打开“Anaconda Prompt”,它不同于普通的“命令提示符”。您的环境从那里被激活。然后执行 activate <env-name>

关于python - python /畅达/ python /Windows : how to start and activate a conda environment?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53539970/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com