(catalyst) C:\Users\deliseev\Documents\Pyhon>pip install enigma-catalyst matplotlib
Collecting enigma-catalyst
Using cached enigma-catalyst-0.5.21.tar.gz (767 kB)
Collecting matplotlib
Using cached matplotlib-3.2.1-cp36-cp36m-win_amd64.whl (9.2 MB)
Requirement already satisfied: pip>=7.1.0 in c:\programdata\anaconda3\envs\catalyst\lib\site-packages (from enigma-catalyst) (20.0.2)
Collecting setuptools==38.5.1
Using cached setuptools-38.5.1-py2.py3-none-any.whl (489 kB)
Collecting Logbook==0.12.5
Using cached Logbook-0.12.5.tar.gz (166 kB)
**ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\catalyst\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\setup.py'"'"'; __file__='"'"'C:\\Users\\deliseev\\AppData\\Local\\Temp\\pip-install-3jmpw5h7\\Logbook\\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\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\pip-egg-info'
cwd: C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\deliseev\AppData\Local\Temp\pip-install-3jmpw5h7\Logbook\setup.py", line 57, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.**
as i can see from error, its some issue with setuptools, but is successfully istalled in pevios lines
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
(base) C:\Users\deliseev>python --version
Python 3.7.6
Managed to change version of setuptools, the restart
pip3 install setuptools==45
pip install enigma-catalyst matplotlib
The problem was described here
https://github.com/pypa/setuptools/issues/2017
Related
I am trying to emulate the Glassdoor API call that is described on this GitHub repository. Below is the example that was used. Seems pretty straight forward but I am running into issues with the pip command.
pip install glassdoor
from glassdoor import get
x = get('dropbox')
x
When I run this part:
pip install glassdoor
I get the below output/error:
Collecting glassdoor
Downloading glassdoor-0.0.8.tar.gz (5.7 kB)
Requirement already satisfied: requests>=1.1.0 in c:\users\<user>\anaconda3\lib\site-packages (from glassdoor) (2.25.1)
Collecting BeautifulSoup>=3.2.1
Using cached BeautifulSoup-3.2.2.tar.gz (32 kB)
Using cached BeautifulSoup-3.2.1.tar.gz (31 kB)
Collecting glassdoor
Downloading glassdoor-0.0.4.tar.gz (5.1 kB)
Downloading glassdoor-0.0.2.tar.gz (3.8 kB)
Downloading glassdoor-0.0.1.tar.gz (3.1 kB)
The conflict is caused by:
glassdoor 0.0.8 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.4 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.2 depends on BeautifulSoup>=3.2.1
glassdoor 0.0.1 depends on BeautifulSoup>=3.2.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
Note: you may need to restart the kernel to use updated packages.
ERROR: Command errored out with exit status 1:
command: 'c:\Users\<user>\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\\setup.py'"'"'; __file__='"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\\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\<user>\AppData\Local\Temp\pip-pip-egg-info-gdpczqw5'
cwd: C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_d39f5c5ac2e34bec980b5f105aa8db54\setup.py", line 3
"You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/40/f2/6c9f2f3e696ee6a1fb0e4d7850617e224ed2b0b1e872110abffeca2a09d4/BeautifulSoup-3.2.2.tar.gz#sha256=a04169602bff6e3138b1259dbbf491f5a27f9499dea9a8fbafd48843f9d89970 (from https://pypi.org/simple/beautifulsoup/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'c:\Users\<user>\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\\setup.py'"'"'; __file__='"'"'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-install-jrj24n8x\\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\\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\<user>\AppData\Local\Temp\pip-pip-egg-info-mpb24z6z'
cwd: C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\<user>\AppData\Local\Temp\pip-install-jrj24n8x\beautifulsoup_5e37669d18a24e84b464eb7a655a54d7\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz#sha256=6a8cb4401111e011b579c8c52a51cdab970041cc543814bbd9577a4529fe1cdb (from https://pypi.org/simple/beautifulsoup/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Cannot install glassdoor==0.0.1, glassdoor==0.0.2, glassdoor==0.0.4 and glassdoor==0.0.8 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
I have tried in both CoLab and Visual Studio Code and get the same error. I have also tried uninstalling both the Glassdoor and the BeautifulSoup4 packages and reinstalling the latest versions to no avail.
Does anyone have any insight on how to fix this?
However, I got the same problem, when I pip install mmseg. So, what should I do?
The log is like that:
(Monocular3D) root#gpu9:~/MonoRUn$ pip3 install mmseg -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting mmseg
Downloading http://pypi.doubanio.com/packages/f8/31/3bc9205f39cc8ab37193a6fbb24693993b2f305aba9f35b09fad882107ee/mmseg-1.3.0.tar.gz (817 kB)
|████████████████████████████████| 817 kB 4.4 MB/s
ERROR: Command errored out with exit status 1:
command: /home/root/miniconda3/envs/Monocular3D/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sz89ieuw/mmseg_86227a7da2734023a199ab7a10d06662/setup.py'"'"';
__file__='"'"'/tmp/pip-install-sz89ieuw/mmseg_86227a7da2734023a199ab7a10d06662/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-pip-egg-info-20_hddgd
cwd: /tmp/pip-install-sz89ieuw/mmseg_86227a7da2734023a199ab7a10d06662/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-sz89ieuw/mmseg_86227a7da2734023a199ab7a10d06662/setup.py", line 6, in <module>
reload(sys)
NameError: name 'reload' is not defined
----------------------------------------
WARNING: Discarding http://pypi.doubanio.com/packages/c9/3a/a38acf3f3ae401082d74cd283d29a873dd3d1b77dc0c7fb28b80f0348073/mmseg-1.2.4.tar.gz#sha256=e7ba753b7bbefe54b4a7c2e27ed6714d1349e30ad6db9d7f67ce67b80b818f4c (from http://pypi.doubanio.com/simple/mmseg/). 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 mmseg
ERROR: No matching distribution found for mmseg
The following worked for me:
pip install openmim
mim install mmsegmentation
You may try to install the latest package version manually. Something like:
pip install mmseg==1.3.0
I am having problems installing plotly on Windows 10 with Python 3.8.5. The command line prompt is in admin mode.
The package manager pip3 here seems to be installing the package retrying-1.3.3 which is running into an error:
ModuleNotFoundError: No module named '_distutils_hack'
Anybody has a solution for this? Greatly appreciate your time. Thanks
C:\ProgramData\Python38\Scripts>pip3 install plotly
Collecting plotly
Using cached plotly-4.14.1-py2.py3-none-any.whl (13.2 MB)
Requirement already satisfied: six in c:\programdata\python38\lib\site-packages (from plotly) (1.15.0)
Collecting retrying>=1.3.3
Using cached retrying-1.3.3.tar.gz (10 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\programdata\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\student\\AppData\\Local\\Temp\\pip-install-2qndeluw\\retrying_de785ef56b9d4150b577dd9f4437e271\\setup.py'"'"'; __file__='"'"'C:\\Users\\student\\AppData\\Local\\Temp\\pip-install-2qndeluw\\retrying_de785ef56b9d4150b577dd9f4437e271\\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\student\AppData\Local\Temp\pip-pip-egg-info-3tjoj6d_'
cwd: C:\Users\student\AppData\Local\Temp\pip-install-2qndeluw\retrying_de785ef56b9d4150b577dd9f4437e271\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\programdata\python38\lib\site-packages\setuptools\__init__.py", line 8, in <module>
import _distutils_hack.override # noqa: F401
ModuleNotFoundError: No module named '_distutils_hack'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The problem may be that the version of the 'setuptools' package is too old. I just updated it when I encountered this problem before.
pip install --upgrade setuptools
I have been trying to install orange3 on my Linux machine. Upon trying:
pip3 install orange3
I get this verbos error:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting orange3
Using cached Orange3-3.27.1-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB)
Collecting AnyQt>=0.0.11
Downloading AnyQt-0.0.11-py2.py3-none-any.whl (46 kB)
Collecting baycomp>=1.0.2
Using cached baycomp-1.0.2-py3-none-any.whl (17 kB)
Requirement already satisfied: pip>=9.0 in ./.local/lib/python3.6/site-packages (from orange3) (20.2.4)
Requirement already satisfied: scikit-learn!=0.23.0,>=0.22.0 in ./.local/lib/python3.6/site-packages (from orange3) (0.22.1)
...
Collecting orange-widget-base>=4.8.1
Using cached orange_widget_base-4.9.0-py3-none-any.whl (229 kB)
...
Collecting python-louvain>=0.13
Using cached python-louvain-0.14.tar.gz (19 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_us67ap2/python-louvain/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_us67ap2/python-louvain/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-pip-egg-info-t2a936sw
cwd: /tmp/pip-install-_us67ap2/python-louvain/
Complete output (28 lines):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2455, in resolve
return functools.reduce(getattr, self.attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_us67ap2/python-louvain/setup.py", line 25, in <module>
scripts=['bin/community']
...
raise ImportError(str(exc)) from exc
ImportError: type object 'Distribution' has no attribute '_finalize_feature_opts'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have already tried updating pip as well as setup-tools using
pip install --upgrade pip
etc but I still get this error.
You probably have a too old version of the setuptools package. Try upgrading it (and pip as well, while you're at it): python3 -m pip install setuptools pip.
Here's a link to a setuptools issue describing the problem: https://github.com/pypa/setuptools/issues/2029
Why this error? I can't install the benchmark anymore. I need to import 'get_data' which contains inside the benchmark. Whats wrong?
pip install benchmark
Collecting benchmark
Using cached benchmark-0.1.5.tar.gz (7.1 kB)
ERROR: Command errored out with exit status 1:
command: /opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-install-qq5kp9hk/benchmark/setup.py'"'"'; __file__='"'"'/private/var/folders/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-install-qq5kp9hk/benchmark/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/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-pip-egg-info-_7t1tj64
cwd: /private/var/folders/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-install-qq5kp9hk/benchmark/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-install-qq5kp9hk/benchmark/setup.py", line 3, in <module>
from benchmark import __VERSION__
File "/private/var/folders/cf/gs10w86j2n1bf2_x86gmqscw0000gn/T/pip-install-qq5kp9hk/benchmark/benchmark/__init__.py", line 10, in <module>
from main import BenchmarkProgram, main
ModuleNotFoundError: No module named 'main'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
benchmark is not compatible with python versions >= 3.
You need python 2.
In a virtual environment with python 3
~/workspace/so via 🐍 v3.8.5 via C python3
❯ pip install benchmark
Collecting benchmark
Downloading benchmark-0.1.5.tar.gz (7.1 kB)
ERROR: Command errored out with exit status 1:
command: /home/louis/miniconda3/envs/python3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wyj1c1sn/benchmark/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wyj1c1sn/benchmark/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-pip-egg-info-0qo4nmp7
cwd: /tmp/pip-install-wyj1c1sn/benchmark/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-wyj1c1sn/benchmark/setup.py", line 3, in <module>
from benchmark import __VERSION__
File "/tmp/pip-install-wyj1c1sn/benchmark/benchmark/__init__.py", line 10, in <module>
from main import BenchmarkProgram, main
ModuleNotFoundError: No module named 'main'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
With python 2 :
~/workspace/so via 🐍 v2.7.18 :: Anaconda, Inc. via C python2
❯ pip install benchmark
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting benchmark
Using cached https://files.pythonhosted.org/packages/e9/af/e0390a38d8d8920a189775102d69fa19107c0b67f75c7934bc166e05d504/benchmark-0.1.5.tar.gz
Building wheels for collected packages: benchmark
Building wheel for benchmark (setup.py) ... done
Created wheel for benchmark: filename=benchmark-0.1.5-cp27-none-any.whl size=6336 sha256=e4878032c29d27e51067deb70363bf7b7108fa93f9458befabfbbcce3b3d4598
Stored in directory: /home/louis/snap/codium/common/.cache/pip/wheels/a4/3f/24/d0ed8ae3351441f06a4a17a6ea3f5c500527144a9aebfbb05c
Successfully built benchmark
Installing collected packages: benchmark
Successfully installed benchmark-0.1.5