[英]different python versions in anaconda and windows cmd , pip install not working
With Anaconda you have conda for enviornment handling.使用 Anaconda,您可以使用 conda 进行环境处理。 Have a look at conda enviornments and how to install packages with conda.
查看conda 环境以及如何使用 conda 安装软件包。
In the Anaconda Prompt with Admin rights you can do:在具有管理员权限的 Anaconda 提示中,您可以执行以下操作:
conda create -n py39 python=3.9
activate py39
conda install -c conda-forge opencv
Then you can use your new env in any command prompt with:然后你可以在任何命令提示符下使用你的新环境:
activate py39
Maybe it's better to use:也许最好使用:
anaconda prompt anaconda 提示
In windows 10 search box search for anaconda prompt
在 windows 10 搜索框搜索
anaconda prompt
python virtual environment. python 虚拟环境。
https://docs.python.org/3/tutorial/venv.html https://docs.python.org/3/tutorial/venv.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.