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?
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 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.)
Trying to install onedrivesdk. Getting the following error.
pip install onedrivesdk
Collecting onedrivesdk
Using cached onedrivesdk-2.0.tar.gz (1.1 kB)
ERROR: Command errored out with exit status 1:
command: /Users/ronnie/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/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 /private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-pip-egg-info-wu2injdc
cwd: /private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py", line 9, in <module>
with open(NOTICE, 'r', encoding='utf-8') as f:
NotADirectoryError: [Errno 20] Not a directory: '/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py/../NOTICE.rst'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The package onedrivesdk has been deprecated.
https://pypi.org/project/onedrivesdk/
So it's no longer available for usage.
I need to use python-2.7 for some script, setuptools==39.1.0, I cannot pip install dm-sonnet, is there supposed to be find_namespace_packages inside setuptools? Its not there in this setuptools(or v44)
Error message:
ERROR: Command errored out with exit status 1:
command: /home/russo/anaconda3/envs/russo2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9l072x/dm-sonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9l072x/dm-sonnet/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 /tmp/pip-install-9l072x/dm-sonnet/pip-egg-info
cwd: /tmp/pip-install-9l072x/dm-sonnet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-9l072x/dm-sonnet/setup.py", line 7, in <module>
from setuptools import find_namespace_packages
ImportError: cannot import name find_namespace_packages
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
dm-sonnet requires Python 3. You cannot use it with Python 2.
In the commit 00612ca setup.py uses find_packages. You can try this version with Python 2.7. It's perhaps release 1.36 or earlier. Try
pip2 install dm-sonnet==1.36
or
pip2 install 'dm-sonnet<2'
I'm trying to install pythonnet on my ubuntu, but without success.
I tried some ways as:
pip install pythonnet
2.pip install git+https://github.com/pythonnet/pythonnet
there is any other way?
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ECL8qX/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ECL8qX/pythonnet/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 /tmp/pip-install-ECL8qX/pythonnet/pip-egg-info
cwd: /tmp/pip-install-ECL8qX/pythonnet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ECL8qX/pythonnet/setup.py", line 18, in <module>
from wheel import bdist_wheel
ImportError: No module named wheel
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.