Asked by:
Not able to do pip install on DSVM

Question
-
trying to do pip install using Anaconda prompt but getting below error
(base) C:\Windows\system32>pip install recordlinkage
Collecting recordlinkage
Using cached https://files.pythonhosted.org/packages/c8/65/929c4894719408c6831f298a1fa54df11a0bdb5f593fc1c6df15810ff32e/recordlinkage-0.13.2-py2.py3-none-any.whl
Requirement already satisfied: scipy>=0.17.1 in c:\anaconda\lib\site-packages (from recordlinkage) (1.1.0)
Requirement already satisfied: joblib in c:\anaconda\lib\site-packages (from recordlinkage) (0.14.0)
Requirement already satisfied: pandas>=0.18.0 in c:\anaconda\lib\site-packages (from recordlinkage) (0.23.0)
Requirement already satisfied: scikit-learn>=0.19.0 in c:\anaconda\lib\site-packages (from recordlinkage) (0.19.1)
Requirement already satisfied: six>=1.10.0 in c:\anaconda\lib\site-packages (from recordlinkage) (1.11.0)
Requirement already satisfied: numpy>=1.13.0 in c:\anaconda\lib\site-packages (from recordlinkage) (1.14.3)
Collecting jellyfish>=0.5.4
Using cached https://files.pythonhosted.org/packages/3f/80/bcacc7affb47be7279d7d35225e1a932416ed051b315a7f9df20acf04cbe/jellyfish-0.7.2.tar.gz
Requirement already satisfied: pytz>=2011k in c:\anaconda\lib\site-packages (from pandas>=0.18.0->recordlinkage) (2018.4)
Requirement already satisfied: python-dateutil>=2.5.0 in c:\anaconda\lib\site-packages (from pandas>=0.18.0->recordlinkage) (2.7.3)
Building wheels for collected packages: jellyfish
Building wheel for jellyfish (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\setup.py'"'"'; __file__='"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\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\v0c1129\AppData\Local\Temp\pip-wheel-q_s3i6t5' --python-tag cp36
cwd: C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\
Complete output (48 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\jellyfish
copying jellyfish\porter.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\test.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\_jellyfish.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\__init__.py -> build\lib.win-amd64-3.6\jellyfish
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 118, in <module>
run_setup(not IS_PYPY)
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 115, in run_setup
**kw)
File "c:\anaconda\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\anaconda\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\anaconda\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\anaconda\lib\site-packages\wheel\bdist_wheel.py", line 202, in run
self.run_command('build')
File "c:\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\anaconda\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 28, in run
build_ext.run(self)
File "c:\anaconda\lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "c:\anaconda\lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "c:\anaconda\lib\distutils\cygwinccompiler.py", line 285, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "c:\anaconda\lib\distutils\cygwinccompiler.py", line 129, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
ERROR: Failed building wheel for jellyfish
Running setup.py clean for jellyfish
Failed to build jellyfish
Installing collected packages: jellyfish, recordlinkage
Running setup.py install for jellyfish ... error
ERROR: Command errored out with exit status 1:
command: 'c:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\setup.py'"'"'; __file__='"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\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\v0c1129\AppData\Local\Temp\pip-record-6b3w2l5h\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\
Complete output (50 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\jellyfish
copying jellyfish\porter.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\test.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\_jellyfish.py -> build\lib.win-amd64-3.6\jellyfish
copying jellyfish\__init__.py -> build\lib.win-amd64-3.6\jellyfish
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 118, in <module>
run_setup(not IS_PYPY)
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 115, in run_setup
**kw)
File "c:\anaconda\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\anaconda\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\anaconda\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\anaconda\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\anaconda\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\anaconda\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\anaconda\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\v0c1129\AppData\Local\Temp\pip-install-tbpxelpc\jellyfish\setup.py", line 28, in run
build_ext.run(self)
File "c:\anaconda\lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "c:\anaconda\lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "c:\anaconda\lib\distutils\cygwinccompiler.py", line 285, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "c:\anaconda\lib\distutils\cygwinccompiler.py", line 129, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\setup.py'"'"'; __file__='"'"'C:\\Users\\v0c1129\\AppData\\Local\\Temp\\pip-install-tbpxelpc\\jellyfish\\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\v0c1129\AppData\Local\Temp\pip-record-6b3w2l5h\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Tuesday, November 19, 2019 1:36 PM
All replies
-
Looks like this is problem with the compiler settings in python. Please see this : https://github.com/stan-dev/pystan/issues/460
When I tried these two:
conda install libpython
conda install -c msys2 m2w64-toolchainand then run pip install recordlinkage , it works.
Hope it helps!
Wednesday, November 20, 2019 9:27 PM