i tried to install py curl but i get this error...
pip install pycurl
Collecting pycurl
Using cached pycurl-7.43.0.6.tar.gz (222 kB)
ERROR: Command errored out with exit status 10:
command: 'c:\users\lequi\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lequi\\AppData\\Local\\Temp\\pip-install-vgtj42e_\\pycurl\\setup.py'"'"'; __file__='"'"'C:\\Users\\lequi\\AppData\\Local\\Temp\\pip-install-vgtj42e_\\pycurl\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lequi\AppData\Local\Temp\pip-pip-egg-info-y5vol4q7'
cwd: C:\Users\lequi\AppData\Local\Temp\pip-install-vgtj42e_\pycurl\
Complete output (1 lines):
Please specify --curl-dir=/path/to/built/libcurl
----------------------------------------
ERROR: Command errored out with exit status 10: python setup.py egg_info Check the logs for full command output.
Can someone Help?
An answer was already given here. Try downloading and compiling pycurl manually
Related
I am trying to pip install clearbit per the following guidance:
Link 1
Link 2
I am on Python 3.9.7 and pip version 21.3. I have also updated my setuptools per other stackoverflow answers.
The command I am running on my Mac Terminal is:
pip install clearbit
But I am met with a series of errors. An example error block states:
Using cached clearbit-0.0.2.tar.gz (2.9 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_e710a979acd3433290a538760255e4c4/setup.py'"'"'; __file__='"'"'/private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_e710a979acd3433290a538760255e4c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-pip-egg-info-jnpe31nd
cwd: /private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_e710a979acd3433290a538760255e4c4/
Complete output (1 lines):
error in clearbit setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/71/44/d8de83ca49c310895481e2f9d4657476c323a60b3186be7afeb584814263/clearbit-0.0.2.tar.gz#sha256=b39180db8e6ac159febe54fb0e0e84c8f0c8facf832c551c1175c758c255326b (from https://pypi.org/simple/clearbit/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached clearbit-0.0.1.tar.gz (2.7 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_4716e56973294efd87482725d29438ec/setup.py'"'"'; __file__='"'"'/private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_4716e56973294efd87482725d29438ec/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-pip-egg-info-3_q7g_32
cwd: /private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_4716e56973294efd87482725d29438ec/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/nv/d5h78rrs0t9625k940k5f4ww0000gn/T/pip-install-plp1xoqf/clearbit_4716e56973294efd87482725d29438ec/setup.py", line 22, in <module>
with open('README.md') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/0d/50/76018c4fd50de45bd927010ae85c7c0e2f8f385f3e90e1ca6aedc5a2ded6/clearbit-0.0.1.tar.gz#sha256=247b48b17c9052aac5551bd6fa1da617f50a8ba883ab78827df53228ead0da57 (from https://pypi.org/simple/clearbit/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement clearbit (from versions: 0.0.1, 0.0.2, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7)
ERROR: No matching distribution found for clearbit
I can't find any guidance on how to troubleshoot this issue. I wondered if anyone has any ideas on how to troubleshoot this? I'm quite new to Python and CLI so any help would be appreciated!
According to the package classifiers (see it here), it seems like clearbit cannot be installed on Python 3.9, because it is not on the classifiers. You have to ask the maintainers to release a Python 3.9 compatible release.
Another issue (that you should note) is that clearbit is using the setuptools use_2to3 command (which is now unsupported).
Anyway, you should ask the project developers for help, or just downgrade your Python version to a compatible one (however, this is not so efficient).
I got this error while installing Spyder in Ubuntu 20.04 with Python 3.7. It installs perfectly with Python 3.8 without any issue. Please help to fix this error.
Building wheels for collected packages: psutil, ujson
Building wheel for psutil (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/ranick/.virtualenvs/ml/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gkngqlcn/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gkngqlcn/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ioxnwy6h
cwd: /tmp/pip-install-gkngqlcn/psutil/
Complete output (44 lines):
running bdist_wheel
I am new to python notebook and python. I'm currently taking python for data science on LinkedIn learning, and I'm running into problem below and couldn't find the solution.
''''! pip3 install plotly''''
Collecting plotly
Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
Running setup.py install for retrying ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build/lib
copying retrying.py -> build/lib
running install_lib
copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Try:
pip install plotly==4.6.0 --user
https://plotly.com/python/getting-started/
I'm trying to install dryscrape python library using pip.
I tried :
pip install dryscrape
But i'm getting error, Traceback :
Collecting dryscrape
Using cached https://files.pythonhosted.org/packages/b5/75/c45f796ec5bc7f98c38b9ae425390ef5f4a76153c8b5af946adb97e7e622/dryscrape-1.0.tar.gz
Collecting webkit_server>=1.0
Using cached https://files.pythonhosted.org/packages/29/f2/f4f454cccde75e95359e91fa58f14497350dc97e58534f9003c77eca3dff/webkit-server-1.0.tar.gz
Requirement already satisfied: lxml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (4.4.2)
Requirement already satisfied: xvfbwrapper in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (0.2.9)
Installing collected packages: webkit-server, dryscrape
Running setup.py install for webkit-server ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/
Complete output (4 lines):
running install
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
I was able to replicate the issue, so I tried googling the following:
Dryscrape no such file or directory found src/webkit_server
and the first result is This StackOverflow Question. I followed the instructions there are it solved the issue.
don't let me install the lib machine.
I have installed the new version of python 3.8X 64bit, and I need the machine library but it gives me error status 1 and then status 2.
Why does it happen to me and how do I solve this problem?
HOW INSTALL MACHINE??
Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB)
Collecting pycrypto
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-wheel-bc38nqbl'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-4736ysct\pycrypto\
Complete output (183 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
.......................
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-record-g2ah2ovt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\Include\pycrypto' Check the logs for full command output.```
_______________________________________________________________________________
[[[[[[[_You are therefore probably looking for another module, since you tagged micropython, maybe this one? neither does it allow me to install the upython lib._
_I have redrawn all and added the path besides checking that this 64bits_
**thanks for your help**]]]]]]]]
_________________________________________________________________________________
Collecting micropython-machine
Using cached micropython-machine-0.2.tar.gz (1.7 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\_, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\pip-egg-info'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python\lib\tokenize.py", line 392, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
I have installed the new version of python 3.8X 64bit
No, you have python 3.8 32 bit, as your path suggests:
c:\users\javier.gutierrez\appdata\local\programs\python\ python38-32
Also your error suggests that it is trying to build for 32 bit:
creating build\lib.win32
Why does it happen to me
The module you are trying to install has pycrypto as a requirement, which has not been updated since 2014 and is only compatible up to python 3.5. It is also insecure and should not be used.
Looking at the module you are trying to install which is this one, it is pretty much empty, containing only an example setup.py and an example __init__.py.
You are therefore probably looking for another module, since you tagged micropython, maybe this one?