简体   繁体   English

Python 安装了很多次,但无法弄清楚为什么 PIP 安装不支持?

[英]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.

相关问题 无法弄清楚为什么追加到列表不起作用 - Can't figure out why appending to list isn't working 可以在PyPi中找到Python库,但无法通过“ pip install”安装 - Python library can be found in PyPi but can't be installed by 'pip install' 为什么pip搜索无法找到某些包,而无论如何都可以通过pip install安装它们 - Why pip search can't find certain packages while they can be installed via pip install anyway ValueError:太多的值无法解包,无法弄清原因 - ValueError: too many values to unpack, can't figure out why 无法弄清楚如何在Windows上安装此python模块? - Can't figure out how to install this python module on Windows? 遵循 python 学习教程,但我的代码没有显示正确的 output,我不知道为什么 - Following a python learning tutorial but my code isn't showing the correct output and I can't figure out why 无法安装pip(python 3.7.4)。 它没有安装python。 get-pip.py也不起作用 - Can't install pip (python 3.7.4). It didn't installed with python. get-pip.py didn't work either 为什么我不能使用pip安装此python模块? - Why can't I install this python module with pip? 为什么我不能在python中pip安装Pyrebase? - why can't i pip install Pyrebase in python? 为什么我不能在 Windows 10 上使用 pip 安装 python 包? - Why can't I install python packages with pip on windows 10?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM