我需要安装这个特定的版本(7.19.0)pycurl。
当我尝试使用此命令进行安装时:
pip安装pycurl == 7.19.0
我收到这个错误。
在Ubuntu中双击安装程序?
Python的PIP安装reportlab错误
我如何在指定的位置安装Qt?
如何以编程方式安装相同打印机驱动程序的第二个实例
以编程方式创build组合桌面快捷键“快捷方式”
Failed building wheel for pycurl Running setup.py clean for pycurl Failed to build pycurl Installing collected packages: pycurl ..... // MULTIPLE LInes build/temp.linux-x86_64-2.7/src/pycurl.o: na função `initpycurl': /tmp/pip-build-4Q4V7Q/pycurl/src/pycurl.c:3904: referência indefinida para `PyEval_InitThreads' collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' Failed with exit status 1 ---------------------------------------- Command "/home/user/.virtualenvs/myenv/bin/python2 -u -c "import setuptools,tokenize;__file__='/tmp/pip-build-4Q4V7Q/pycurl/setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('rn','n'),__file__,'exec'))" install --record /tmp/pip-UlYKto-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/.virtualenvs/myenv/include/site/python2.7/pycurl" Failed with error code 1 in /tmp/pip-build-4Q4V7Q/pycurl/
我怎样才能安装这个特定的版本?
我使用的是Ubuntu 16。
谢谢!
致命错误 – 找不到'Mongo'类
无法删除设备/ dev / loop0
无声安装.msu Windows更新?
如何从WDK 8.1多士炉驱动程序安装KMDFfilter驱动程序?
在环境中运行:
apt-cache depends python-pycurl
它会输出类似于:
Depends: python Depends: python Depends: <python:any> python Depends: libc6 Depends: libcurl3-gnutls Suggests: libcurl4-gnutls-dev Suggests: python-pycurl-dbg Suggests: python-pycurl-doc
安装libcurl4-gnutls-dev:
sudo apt-get install libcurl4-gnutls-dev
现在检查是否可以在env中安装pycurl:
pip install pycurl
如果它不工作,并抛出错误“无法创建轮子”或类似的进一步:
apt-cache search gnutl | grep dev
输出是:
libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS flavour) libgnutls-dev - GNU TLS library - development files libgnutls28-dev - dummy transitional package for GNU TLS library - development files libneon27-gnutls-dev - Header and static library files for libneon27 (GnuTLS enabled) libsoup-gnome2.4-dev - HTTP library implementation in C -- GNOME support development files
在我的情况下,安装后:
sudo apt-get install libgnutls-dev
我能够在virtualenv中安装PyCurl
我有相同的错误,无法找到一种方法来安装在Ubuntu 16.04 pycurl==7.19.0 。 我相反切换到pycurl==7.43.0和pycurl==7.43.0安装它就好了。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。