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).
Related
I am facing this(failed to install face_recognition, pillow, dilib) problems more than 3 hours but it can not install. please solve anyone . here is error massage
Collecting face-recognition==1.3.0
Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: numpy in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (1.23.5)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (0.3.0)
Collecting dlib>=19.7
Using cached dlib-19.24.0.tar.gz (3.2 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: Click>=6.0 in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (7.1.2)
Requirement already satisfied: Pillow in c:\users\ajay kumar\downloads\attendance\venv\lib\site-packages (from face-recognition==1.3.0) (9.3.0)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py): started
Building wheel for dlib (setup.py): finished with status 'error'
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, face-recognition
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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'"'"'))' bdist_wheel -d 'C:\Users\Ajay Kumar\AppData\Local\Temp\pip-wheel-_d9j585t'
cwd: C:\Users\Ajay Kumar\AppData\Local\Temp\pip-install-milseje2\dlib_309f909f3c144f8cb6e2594feb25911f\
Complete output (8 lines):
running bdist_wheel
running build
running build_py
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Failed building wheel for dlib
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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'"'"'))' install --record 'C:\Users\Ajay Kumar\AppData\Local\Temp\pip-record-cv4pvl8s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\include\site\python3.11\dlib'
cwd: C:\Users\Ajay Kumar\AppData\Local\Temp\pip-install-milseje2\dlib_309f909f3c144f8cb6e2594feb25911f\
Complete output (10 lines):
running install
C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ajay Kumar\\AppData\\Local\\Temp\\pip-install-milseje2\\dlib_309f909f3c144f8cb6e2594feb25911f\\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'"'"'))' install --record 'C:\Users\Ajay Kumar\AppData\Local\Temp\pip-record-cv4pvl8s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\include\site\python3.11\dlib' Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.
You should consider upgrading via the 'C:\Users\Ajay Kumar\Downloads\ATTENDANCE\venv\Scripts\python.exe -m pip install --upgrade pip' command.
installing face_recognition, pillow, dilib library in python
I think you need to install CMake before build dlib
ERROR: CMake must be installed to build dlib
edit: Official cmake site https://cmake.org/download/
I use python 3.8.32 bit and I try to install spc 0.3 on my computer but there is an error that appears and stops the installing process. Note that I use Windows 10 10.0, PyCharm 2021.2.1 (Community Edition), and Memory: 980M
The error is explained below :
ERROR: Command errored out with exit status 1:
command: 'c:\Users\lenovo\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import
io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-
y1l465fe\\spc_c62f53289a8d41bcbaf4216f5dfb469c\\setup.py'"'"';
__file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-
y1l465fe\\spc_c62f53289a8d41bcbaf4216f5dfb469c\\setup.py'"'"';f = getattr(tokenized,
'"'"'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
'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-euhi7_c6'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-
y1l465fe\spc_c62f53289a8d41bcbaf4216f5dfb469c\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\lenovo\AppData\Local\Temp\pip-install-
y1l465fe\spc_c62f53289a8d41bcbaf4216f5dfb469c\setup.py", line 3, in <module>
from ez_setup import use_setuptools
ModuleNotFoundError: No module named 'ez_setup'
----------------------------------------
WARNING: Discarding
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 spc (from versions: 0.3)
ERROR: No matching distribution found for spc
Can any one help me PLZ?
I'm trying to set up a django project on my local. I've created a virtualenv. when I try install the requirements with:
pip install -r requirements.txt
I'm getting an error:
ERROR: Command errored out with exit status 1:
command: 'D:\Work\Web Development - Old\PullStream\django\evcs-fe\venv\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lachi\\AppData\\Local\\Temp\\pip-install-847c5ux0\\django-multi-captcha-admin_1ab73ac1a6d14606bffcc9cca96b88bf\\setup.py'"'"';
__file__='"'"'C:\\Users\\lachi\\AppData\\Local\\Temp\\pip-install-847c5ux0\\django-multi-captcha-admin_1ab73ac1a6d14606bffcc9cca96b88bf\\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 'C:\Users\lachi\AppData\Local\Temp\pip-pip-egg-info-ocge_4v4'
cwd: C:\Users\lachi\AppData\Local\Temp\pip-install-847c5ux0\django-multi-captcha-admin_1ab73ac1a6d14606bffcc9cca96b88bf\
Complete output (2 lines):
error in django-multi-captcha-admin setup command: use_2to3 is invalid.
warning: pypandoc module not found, could not convert Markdown to RST
----------------------------------------
ERROR: Could not find a version that satisfies the requirement django-multi-captcha-admin==1.0.0 (from versions: 1.0.0)
ERROR: No matching distribution found for django-multi-captcha-admin==1.0.0
How can I fix this? any suggestions?
This issue tell you that pip repository can't find the (exact) version of the plugin you want install.
A workaround is too modify the requirements.txt file and take a more generic approach like this :
Instead of pip-plugin-name==version-number
do pip-plugin-name , this will install the most up to date version of this plugin hosted on pip server.
In your case : replace django-multi-captcha-admin==1.0.0 by django-multi-captcha-admin in the requirements.txt file.
If any version of this plugin is present on pip server, it will be installed.
I am trying to download the python package fast_slic. I have downloaded the files necessary here: https://pypi.org/project/fast-slic/#files. I have also installed the Microsoft Visual Studio Installer to aid the process. This is the code I use and the error message I am receiving:
pip install fast_slic
Collecting fast_slicNote: you may need to restart the kernel to use updated packages. Using cached fast-slic-0.4.0.tar.gz (47 kB) Requirement already satisfied: numpy in c:\users\david\appdata\local\programs\python\python39\lib\site-packages (from fast_slic) (1.19.5) Building wheels for collected packages: fast-slic
ERROR: Command errored out with exit status 1: command: 'C:\Users\David\AppData\Local\Programs\Python\Python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\setup.py'"'"';
__file__='"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\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'"'"'))' bdist_wheel -d 'C:\Users\David\AppData\Local\Temp\pip-wheel-z2t076vn'
cwd: C:\Users\David\AppData\Local\Temp\pip-install-g7wsi08t\fast-slic_eeed0754caf74386bc0ad33b27a930a6\ Complete output (30 lines): Building wheel for fast-slic (setup.py): started Building wheel for fast-slic (setup.py): finished with status 'error' Running setup.py clean for fast-slic Failed to build fast-slic Installing collected packages: fast-slic
Running setup.py install for fast-slic: started
Running setup.py install for fast-slic: finished with status 'error' running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\cpuid copying cpuid\cpuid.py -> build\lib.win-amd64-3.9\cpuid copying cpuid\__init__.py -> build\lib.win-amd64-3.9\cpuid creating build\lib.win-amd64-3.9\fast_slic show more (open the raw output data in a text editor) ...
C:\Users\David\AppData\Local\Programs\Python\Python39\include\pyconfig.h(201): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
C:\Users\David\AppData\Local\Programs\Python\Python39\include\pyconfig.h(201): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\David\AppData\Local\Programs\Python\Python39\python.exe' -u
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\setup.py'"'"';
__file__='"'"'C:\\Users\\David\\AppData\\Local\\Temp\\pip-install-g7wsi08t\\fast-slic_eeed0754caf74386bc0ad33b27a930a6\\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'"'"'))' install --record 'C:\Users\David\AppData\Local\Temp\pip-record-ik_8uebk\install-record.txt'
--single-version-externally-managed --compile --install-headers 'C:\Users\David\AppData\Local\Programs\Python\Python39\Include\fast-slic' Check the logs for full command output.
I am running windows on my laptop.
Any help is greatly appreciated
If you are in Windows try to run in the command prompt py -m pip install fast-slic?
I have figured out the problem. I think I had some corrupt files so I downloaded the Windows 10 SDK (10.0.19041.0) from Visual Studio Installer and re-ran the code
i used the command pip install uWSGI but then i get the error
Using cached uwsgi-2.0.17.1.tar.gz (800 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Oscar\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Oscar\\AppData\\Local\\Temp\\pip-install-39mpiaq2\\uwsgi_c49548e783724e34b0711a03b318a590\\setup.py'"'"'; __file__='"'"'C:\\Users\\Oscar\\AppData\\Local\\Temp\\pip-install-39mpiaq2\\uwsgi_c49548e783724e34b0711a03b318a590\\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 'C:\Users\Oscar\AppData\Local\Temp\pip-pip-egg-info-3lzq9ewp'
cwd: C:\Users\Oscar\AppData\Local\Temp\pip-install-39mpiaq2\uwsgi_c49548e783724e34b0711a03b318a590\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Oscar\AppData\Local\Temp\pip-install-39mpiaq2\uwsgi_c49548e783724e34b0711a03b318a590\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\Oscar\AppData\Local\Temp\pip-install-39mpiaq2\uwsgi_c49548e783724e34b0711a03b318a590\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a2/c9/a2d5737f63cd9df4317a4acc15d1ddf4952e28398601d8d7d706c16381e0/uwsgi-2.0.17.1.tar.gz#sha256=d2318235c74665a60021a4fc7770e9c2756f9fc07de7b8c22805efe85b5ab277 (from https://pypi.org/simple/uwsgi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached uwsgi-2.0.17.tar.gz (798 kB)
does anyone know how to fix this error?
gunicorn also does not support Windows. See https://github.com/benoitc/gunicorn/issues/524
If you use Apche server, you can use mod_wsgi. See How to install mod_wsgi into Apache on Windows?
Or, using docker can be a solution.
By switching operating systems.
uWSGI doesn't work on bare Windows. (It might work on Cygwin, but that's probably not something you want to pursue.)