E:\environment\python
,注意替换成实际安装目录python-3.10.11-embed-amd64.zip
,目录为E:\environment\python\python-3.10.11-embed-amd64
Lib\site-packages
,否则会提示找不到模块
E:\environment\python\python-3.10.11-embed-amd64
E:\environment\python\python-3.10.11-embed-amd64\Scripts
python
命令E:\environment\python\python-3.10.11-embed-amd64>python --version
Python 3.10.11
pip
get-pip.py
,拷贝到E:\environment\python\python-3.10.11-embed-amd64
根目录下即可get-pip.py
所在目录下打开命令行cmd
,执行如下命令,安装pippython get-pip.py install pip
pip
源,这里添加了阿里源
和清华源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple"
pip
命令E:\environment\python\python-3.10.11-embed-amd64>pip --version
pip 24.0 from E:\environment\python\python-3.10.11-embed-amd64\Lib\site-packages\pip (python 3.10)
virtualenv
主要是用来创建虚拟环境
pip
安装virtualenv
E:\environment\python\python-3.10.11-embed-amd64>pip install virtualenv==20.25.1
Looking in indexes: https://mirrors.aliyun.com/pypi/simple, https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: virtualenv==20.25.1 in e:\environment\python\python-3.10.11-embed-amd64\lib\site-packages (20.25.1)
Requirement already satisfied: distlib<1,>=0.3.7 in e:\environment\python\python-3.10.11-embed-amd64\lib\site-packages (from virtualenv==20.25.1) (0.3.8)
Requirement already satisfied: filelock<4,>=3.12.2 in e:\environment\python\python-3.10.11-embed-amd64\lib\site-packages (from virtualenv==20.25.1) (3.13.1)
Requirement already satisfied: platformdirs<5,>=3.9.1 in e:\environment\python\python-3.10.11-embed-amd64\lib\site-packages (from virtualenv==20.25.1) (4.2.0)
virtualenv
命令E:\environment\python\python-3.10.11-embed-amd64>virtualenv --version
virtualenv 20.25.1 from E:\environment\python\python-3.10.11-embed-amd64\Lib\site-packages\virtualenv\__init__.py
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。