Python pip can't install pylint (Windows 8) -
whenever try install pylint or flask error message. tried install few other packages , of them worked example: jsonpickle or numpy. have searched through stackoverflow , tried few solutions worked others (like --no-cache-dir) didn't work me. i'm pretty new python , don't understand why can't install these packages.
my operating system: windows 8
my python version: 3.6.2
i tried reinstall python didn't work. here output when try install pylint.
ps c:\users\my_user> pip install pylint --no-cache-dir collecting pylint downloading pylint-1.7.2-py2.py3-none-any.whl (644kb) 100% |████████████████████████████████| 645kb 3.9mb/s collecting astroid>=1.5.1 (from pylint) downloading astroid-1.5.3-py2.py3-none-any.whl (269kb) 100% |████████████████████████████████| 276kb 7.3mb/s requirement satisfied: colorama; sys_platform == "win32" in c:\users\my_user\appdata\local\programs\python\pyt hon36-32\lib\site-packages (from pylint) requirement satisfied: mccabe in c:\users\my_user\appdata\local\programs\python\python36-32\lib\site-packages (from pylint) requirement satisfied: isort>=4.2.5 in c:\users\my_user\appdata\local\programs\python\python36-32\lib\site-pac kages (from pylint) requirement satisfied: 6 in c:\users\my_user\appdata\local\programs\python\python36-32\lib\site-packages\six -1.10.0-py3.6.egg (from pylint) requirement satisfied: lazy-object-proxy in c:\users\my_user\appdata\local\programs\python\python36-32\lib\sit e-packages (from astroid>=1.5.1->pylint) collecting wrapt (from astroid>=1.5.1->pylint) downloading wrapt-1.10.11.tar.gz installing collected packages: wrapt, astroid, pylint running setup.py install wrapt ... error complete output command c:\users\my_user\appdata\local\programs\python\python36-32\python.exe -u -c "import s etuptools, tokenize;__file__='c:\\users\\my_user~1\\appdata\\local\\temp\\pip-build-f7qysct_\\wrapt\\setup.py';f=getattr( tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" nstall --record c:\users\my_user~1\appdata\local\temp\pip-2qahpnfq-record\install-record.txt --single-version-externally- managed --compile: running install running build running build_py creating build creating build\lib.win32-3.6 creating build\lib.win32-3.6\wrapt copying src\wrapt\arguments.py -> build\lib.win32-3.6\wrapt copying src\wrapt\decorators.py -> build\lib.win32-3.6\wrapt copying src\wrapt\importer.py -> build\lib.win32-3.6\wrapt copying src\wrapt\wrappers.py -> build\lib.win32-3.6\wrapt copying src\wrapt\__init__.py -> build\lib.win32-3.6\wrapt running build_ext traceback (most recent call last): file "<string>", line 1, in <module> file "c:\users\my_user~1\appdata\local\temp\pip-build-f7qysct_\wrapt\setup.py", line 100, in <module> run_setup(with_extensions=true) file "c:\users\my_user~1\appdata\local\temp\pip-build-f7qysct_\wrapt\setup.py", line 70, in run_setup setup(**setup_kwargs_tmp) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\core.py", line 148, in setup dist.run_commands() file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\dist.py", line 955, in run_comman ds self.run_command(cmd) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\dist.py", line 974, in run_comman d cmd_obj.run() file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\site-packages\setuptools\command\install.py ", line 61, in run return orig.install.run(self) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\command\install.py", line 545, in run self.run_command('build') file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\dist.py", line 974, in run_comman d cmd_obj.run() file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\command\build.py", line 135, in r un self.run_command(cmd_name) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\dist.py", line 974, in run_comman d cmd_obj.run() file "c:\users\my_user~1\appdata\local\temp\pip-build-f7qysct_\wrapt\setup.py", line 25, in run build_ext.run(self) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\command\build_ext.py", line 308, in run force=self.force) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\ccompiler.py", line 1031, in new_ compiler return klass(none, dry_run, force) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\cygwinccompiler.py", line 282, in __init__ cygwinccompiler.__init__ (self, verbose, dry_run, force) file "c:\users\my_user\appdata\local\programs\python\python36-32\lib\distutils\cygwinccompiler.py", line 126, in __init__ if self.ld_version >= "2.10.90": typeerror: '>=' not supported between instances of 'nonetype' , 'str' ---------------------------------------- command "c:\users\my_user\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__fi le__='c:\\users\\my_user~1\\appdata\\local\\temp\\pip-build-f7qysct_\\wrapt\\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 \my_user~1\appdata\local\temp\pip-2qahpnfq-record\install-record.txt --single-version-externally-managed --compile" faile d error code 1 in c:\users\my_user~1\appdata\local\temp\pip-build-f7qysct_\wrapt\``` solution:
went python install path c:\python36-32\lib\distutils , edited distutils.cfg.
distutils.cfg - before
[build] compiler=mingw32 distutils.cfg - after
[build] #compiler=mingw32 compiler=msvc [build_ext] compiler=msvc
Comments
Post a Comment