2024-10-01 09:16:43 发布
网友
我正试图通过python 3.8上的pip install安装Pandas,但终端试图使用我计算机上的pipfrom python 3.9,尽管我认为我删除了python 3.9文件夹中的所有内容。作为参考,3.8和3.9如下所示:
python 3.8
pip install
pip
python 3.9
3.8
3.9
在Python3.9/Scripts下,有一个python 3.9的pip安装程序。如果我只是从python 3.9中删除lib和scripts文件夹,pip安装程序会自动默认为3.8吗
Python3.9/Scripts
lib
scripts
谢谢
简单的方法是从Windows环境变量中删除python3.9
最好的方法是在自定义Python版本中使用VirtualENV
1.-安装VirtualEnv 2.-使用特定的Python版本在终端中创建ENV
virtualenv venv -p=/c/Programs/Python/Python38/python.exe
3.-使用
source venv activate
现在,您的安装已被隔离
我修复了我的问题,我只需要删除包含lib和script的整个python3.9文件夹
简单的方法是从Windows环境变量中删除python3.9
最好的方法是在自定义Python版本中使用VirtualENV
1.-安装VirtualEnv 2.-使用特定的Python版本在终端中创建ENV
3.-使用
现在,您的安装已被隔离
我修复了我的问题,我只需要删除包含lib和script的整个python3.9文件夹
相关问题 更多 >
编程相关推荐