I am using pycurl - actually wants to use it - in my python scripts.
I install it pip install pycurl - it pull version 7.43.0
When executing import pycurl I have error 'Incompatible library version: pycurl.so requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0'
I check - latest stable version of libcurl is 7.19.0
What I am doing wrong.
- I am using Mac with 10.10.5
I have installed pycurl just like you with sudo pip install pycurl and get Successfully installed pycurl-7.43.0, after which import pycurl is ok. and my libcurl.4.dylib is provided with version 8. I would recommand remove libcurl, and reinstall it with pycurl, refer to this issue.
Related
I'm setting up a new Windows 10 PC at work. I'm facing issues in trying to install vtk 8.1.2 for Python 3.7.3, which is the only version there is on my PC.
This is what I get trying with pip 19.1.1 and wget:
C:\Users\staff>pip install vtk
Collecting vtk
ERROR: Could not find a version that satisfies the requirement vtk (from
versions: none)
ERROR: No matching distribution found for vtk
C:\Users\staff>wget https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
--2019-06-20 08:52:49--
https://files.pythonhosted.org/packages/6b/55/.../vtk-8.1.2-cp37-cp37m-win_amd64.whl
Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.29.63
Connecting to files.pythonhosted.org
(files.pythonhosted.org)|151.101.29.63|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24390482 (23M) [binary/octet-stream]
Saving to: 'vtk-8.1.2-cp37-cp37m-win_amd64.whl'
vtk-8.1.2-cp37-cp37m-win_amd6 100%
[==========================>] 23.26M 52.7MB/s in 0.4s
2019-06-20 08:52:50 (52.7 MB/s) - 'vtk-8.1.2-cp37-cp37m-win_amd64.whl' saved
[24390482/24390482]
C:\Users\staff>pip install vtk-8.1.2-cp37-cp37m-win_amd64.whl
ERROR: vtk-8.1.2-cp37-cp37m-win_amd64.whl is not a supported wheel on this
platform.
I omit the full wget link for formatting purposes.
I would prefer to keep the PC without virtual environments and multiple Python versions to avoid mess. Do you have any suggestion?
Your Python is 32-bit and vtk only provides 64-bit builds. Install 64-bit Python and retry.
I have tried to install tensorflow-data-validation 0.9.0 with pip installation, but it keeps giving me the same error: Could not find a version that satisfies the requirement tensorflow-data-validation...
isn't this version available for windows or i am just missing something?
From the PyPi documentation on tensorflow-data-validation you can see the version compatibility:
Requires: Python >=2.7,<3
So you won't be able to install it with other versions (like your 3.6.2).
Anaconda3, Python 3.6, pip version 9.0.1
pip install imagenet_utils
Error message:
Could not find a version that satisfies the requirement imagenet_utils (from versions: ) No matching distribution found for imagenet_utils
Please, help.
Read me docs on github indicate compatibility up to 3.5. Take a look at some comparable libraries to avoid this issue here:
5 Genius Python Deep Learning Libraries.
Anaconda also offers a conda install version of Keras where this specific package can be accessed:
conda install -c conda-forge keras
then for python script would read:
from keras import imagenet_utils
Assuming compatibility is not the issue, you will need to verify the anaconda package location and make sure that you are installing to that location.
When i Install Cassandra 3.11X and Python 2.7.X in Debian 8.8, the Cqlsh does not start.
I get the following error.
debian#vm-184:/opt/apache-cassandra-3.10/bin$ ./cqlsh
Python Cassandra driver not installed, or not on PYTHONPATH.
You might try "pip install cassandra-driver".
Python: /usr/local/bin/python
Module load path: ['/opt/apache-cassandra-3.10/bin/../lib/six-1.7.3-py2.py3-none-any.zip', '/opt/apache-cassandra-3.10/bin/../lib/futures-2.1.6-py2.py3-none-any.zip', '/opt/apache-cassandra-3.10/bin/../lib/cassandra-driver-internal-only-3.7.0.post0-2481531.zip/cassandra-driver-3.7.0.post0-2481531', '/opt/apache-cassandra-3.10/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']
Error: can't decompress data; zlib not available
How do we resolve this
On RedHat 7x - Install the following packages:
# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
Then...
# vi .../Python-2.7.13/Modules/Setup
uncomment the line:
...
zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
AND (re-)compile python source:
# cd .../Python-2.7.13/Modules/
# ./configure
# make
# make install
Error: can't decompress data; zlib not available
Is the zlib library install?
please install zlib first.
This issue generally comes when your machine has Python 2.6 or below.
Check the answer over here cassandra 2.2 CQl Shell supports python 2.7 on how to start cqlsh using python 2.7
Quoting - "Depending on your distribution and its version you cannot change the default python version of the system without breaking the system."
I would recommend you to choose Debian version that uses Python2.7x natively.
When I try to compile I am getting the following error:
ImportError: No module named simplejson
So I tried:
pip install simplejson
And I am getting:
Requirement already satisfied (use --upgrade to upgrade): simplejson in /Library/Python/2.7/site-packages
Cleaning up...
I tried uninstalling it and installing it again and the same error.
I am running python 2.7.9 on OS Yosemite
Any idea what can I do? Thanks in advance
If you can't get your simplejson installation working, you can alternatively use the json library included in by default in Python 2.6+. If you're not concerned with small speed differences or backwards compatibility issues, the JSON library should be adequate and provides the same API. For more info on the differences between json and simplejson, check out this post.
You can also satisfy current dependencies on simplejson by changing your import statement from
import simplejson
to
import json as simplejson
See my answer here. The short version is to make sure the version of pip you're using (2 vs 3) is the same as the version of python you're using. The commands you want are
pip2 install simplejson
if you're using python 2 and
pip3 install simplejson
if you're using python 3.
The full answer as mirrored from the link:
I had this same issue and it was not fixed by running pip install simplejson despite pip insisting that it was installed. Then I realized that I had both python 2 and python 3 installed.
> python -V
Python 2.7.12
> pip -V
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
Installing with the correct version of pip is as easy as using pip2:
> pip2 install simplejson
and then python 2 can import simplejson fine.