[英]Python is installed many times but can't figure out why PIP install isn't supporting?
I see the below:我看到以下内容:
C:\Users\natan12\Documents\My-Work-Files\Python-Learning\New>python -m site --user-site
C:\Users\natan12\AppData\Roaming\Python\Python38\site-packages
The first one above is the directly connected to pycharm where i am working and trying to install PIP packages but I see that all the packages and python are being installed in another folder.上面的第一个是直接连接到 pycharm,我正在工作并尝试安装 PIP 包,但我看到所有包和 python 都安装在另一个文件夹中。 Probably, that goes back to days when i was trying to play with it.
可能,这可以追溯到我尝试玩它的日子。
My aim is to install and work in the same folder as below:我的目标是在如下相同的文件夹中安装和工作:
C:\Users\natan12\Documents\My-Work-Files\Python-Learning\New>python -m site --user-site
But no matter what i install or try to run probably gets into the other place instead of my working directory so i am not sure how to sort out this mess.但无论我安装或尝试运行什么,都可能进入其他地方而不是我的工作目录,所以我不确定如何解决这个问题。
Can someone please help me to sort this out?有人可以帮我解决这个问题吗?
Did you try installing 'pip' globally?您是否尝试在全球范围内安装“pip”? That worked for me when trying to use pip install while working with Django. Hope this works for you too!
在使用 Django 时尝试使用 pip 安装时,这对我有用。希望这对你也有用!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.