我是Python的新手,并试图> pip install linkchecker在Windows 7上.一些说明:
> pip install scrapy也会导致SSL错误.python而pip直到我安装3.4.1中不具备的命令行.> pip search linkchecker作品.也许这是因为pip搜索不会验证网站的SSL证书.以下是运行后我的pip.log的内容pip install linkchecker:
Downloading/unpacking linkchecker
Getting page https://pypi.python.org/simple/linkchecker/
Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)
Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries …Run Code Online (Sandbox Code Playgroud) 使用pip更新包的方法是什么?那些不起作用
pip update
pip upgrade
Run Code Online (Sandbox Code Playgroud)
我知道这是一个简单的问题,但因为它不容易找到(pip 文档没有弹出,堆栈溢出的问题是相关的,但并不完全相关)
我有一个本地版本的Python 3.4.1,我可以运行python -m pip install,但我无法找到要运行的pip二进制文件pip install.这两者有什么区别?
我想安装tensorflow,但我需要升级pip。如何升级pip?我尝试通过命令行升级,这就是我得到的。
C:\Users\garoo>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python36-32\\lib\\site-packages\\pip-10.0.1.dist-info\\entry_points.txt'
Consider using the `--user` option or check the permissions.
You are using pip version 10.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\garoo>python -m pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud) 在pip install pandasDigital Ocean 512MB Droplet上执行时,我收到错误UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)
.
可能导致它的任何想法?我正在运行Ubuntu 12.04 64bit.
我想用这个管理依赖模块的小型Python项目:http: //blog.zoomeranalytics.com/pip-install-t/
简而言之,我会这样做:
cd myproject
pip install --target ./pip-libs --upgrade -r requirements.txt
然后将./pip-libs添加到PYTHONPATH并运行我的脚本.
这似乎但我喜欢使用pip冻结,它不允许我做任何事情
pip freeze --target pip-libs
查看文件夹中安装的软件包.当然,我可以看看里面,但是使用--target显示安装在文件夹中的软件包的标准方法是什么?我能想到的唯一方法就是做lspip-libs然后玩grep,awk ......看起来不对.
我不确定是否有办法,也许这不是一个好主意,或者我应该请求pip这样的功能.
Python 2.7.9.
我正在尝试在我的 EMR 集群的主实例上安装 pyarrow,但是我总是收到此错误。
[hadoop@ip-XXX-XXX-XXX-XXX ~]$ sudo /usr/bin/pip-3.4 install pyarrow
Collecting pyarrow
Downloading https://files.pythonhosted.org/packages/c0/a0/f7e9dfd8988d94f4952f9b50eb04e14a80fbe39218520725aab53daab57c/pyarrow-0.10.0.tar.gz (2.1MB)
100% |????????????????????????????????| 2.2MB 643kB/s
Requirement already satisfied: numpy>=1.10 in /usr/local/lib64/python3.4/site-packages (from pyarrow)
Requirement already satisfied: six>=1.0.0 in /usr/local/lib/python3.4/site-packages (from pyarrow)
Installing collected packages: pyarrow
Running setup.py install for pyarrow ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/mnt/tmp/pip-build-pr3y5_mu/pyarrow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-vmywdpeg-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib64/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/mnt/tmp/pip-build-pr3y5_mu/pyarrow/.eggs/setuptools_scm-3.1.0-py3.4.egg/setuptools_scm/utils.py:118: UserWarning: 'git' was not found
running …Run Code Online (Sandbox Code Playgroud) 使用时:
pip install -e pip-package
Run Code Online (Sandbox Code Playgroud)
如何做相当于:
pip install pip-package[all]==1.10.0
Run Code Online (Sandbox Code Playgroud)
“[all]”是我试图利用的额外功能。
我在 pyenv 中使用 Python 3.6.5。pip 10 不久前问世了,但 pyenv 正在使用 pip 9.0.3 创建我的新虚拟环境,我必须手动更新它们中的每一个。这很烦人。
我尝试更新 pyenv 并重新安装 Python 版本(我希望它会带有更新的 pip 版本,但它没有。)但没有成功。
我应该等待 pyenv 方面的更新还是我错过了什么?
我尝试使用以下语法安装 win32com.client,但没有成功
>>> pip install pywin32
Run Code Online (Sandbox Code Playgroud)
语法错误:无效语法
>>> pypiwin32
Run Code Online (Sandbox Code Playgroud)
回溯(最近一次调用):文件“”,第 1 行,在 pypiwin32 中 NameError:未定义名称“pypiwin32”
>>> pip install pypiwin32
Run Code Online (Sandbox Code Playgroud)
语法错误:无效语法
>>> pip install pypiwin32-220-cp36-none-win32.whl
Run Code Online (Sandbox Code Playgroud)
语法错误:无效语法
我创建了一个virtualenv并使用以下命令下载了Django:
virtualenv tester
source tester/bin/activate
pip install django
Run Code Online (Sandbox Code Playgroud)
以下是回复:
Downloading/unpacking django
Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
Installing collected packages: django
Compiling /home/romaan/workspacepy/tester/build/django/django/conf/app_template/apps.py ...
File "/home/romaan/workspacepy/tester/build/django/django/conf/app_template/apps.py", line 4
class {{ camel_case_app_name }}Config(AppConfig):
^
SyntaxError: invalid syntax
Compiling /home/romaan/workspacepy/tester/build/django/django/conf/app_template/models.py ...
File "/home/romaan/workspacepy/tester/build/django/django/conf/app_template/models.py", line 1
{{ unicode_literals }}from django.db import models
^
SyntaxError: invalid syntax
Successfully installed django
Run Code Online (Sandbox Code Playgroud)
请帮我摆脱这个错误.虽然它说成功安装了django,但我很想理解并摆脱这种语法错误.
或者我应该等待错误修复发生?
我在Ubuntu 14上工作.我安装了python3和pip3.当我尝试使用pip3时,我有这个错误
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 70, i
n <module>
import packaging.version
ImportError: No module named 'packaging'
Run Code Online (Sandbox Code Playgroud)
有人知道这是什么问题吗?
非常感谢
运行时出现此错误
$ pip3 install -U pip
Requirement already up-to-date: pip in ./dlenv/lib/python3.6/site-packages (10.0.1)
launchpadlib 1.10.6 requires testresources, which is not installed.
Run Code Online (Sandbox Code Playgroud)
我已经搜索了apt,testresources似乎已经安装了。
apt search testresources
Sorting... Done
Full Text Search... Done
python-testresources/bionic,bionic 2.0.0-2 all
PyUnit extension for managing expensive test fixtures - Python 2.x
python3-testresources/bionic,bionic 2.0.0-2 all
PyUnit extension for managing expensive test fixtures - Python 3.
Run Code Online (Sandbox Code Playgroud)
我已经解决了这个github 问题,但解决方案还不清楚。
pip ×11
python ×11
python-3.x ×4
python-2.7 ×2
ubuntu ×2
windows ×2
amazon-emr ×1
cmake ×1
django ×1
pyarrow ×1
pyenv ×1
python-2.x ×1
ssl ×1
ubuntu-18.04 ×1
virtualenv ×1
win32com ×1