我把一切都做得很好,然后突然间我就得到了这个
PS C:\Users\rygra\Documents\Ryan Projects\totalwine-product-details-scraper> ensurepip
ensurepip : The term 'ensurepip' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ensurepip
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ensurepip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\rygra\Documents\Ryan Projects\totalwine-product-details-scraper> py get-pip.py
C:\Users\rygra\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\rygra\\Documents\\Ryan Projects\\totalwine-product-details-scraper\\get-pip.py': [Errno 2] No such file or directory
PS C:\Users\rygra\Documents\Ryan Projects\totalwine-product-details-scraper>我如何解决这个问题?
发布于 2022-02-26 12:51:17
看上去你在Windows上。
正如https://pip.pypa.io/en/stable/installation/#ensurepip中所描述的,您应该运行:
py -m ensurepip --upgrade发布于 2022-09-17 22:17:39
如果第一个环境不能工作,您可以使用python3 -m venv venv或python -m venv venv创建一个虚拟环境。
然后,打开创建的venv文件夹中的“脚本”文件夹,并以其名称复制带有"pip“的文件。
最后,将这些文件粘贴到原始python文件夹的“脚本”文件夹(之前安装在计算机上的文件)上。
https://stackoverflow.com/questions/71276514
复制相似问题