copying src\twisted\test\key.pem.no_trailing_newline -> build\lib.win32-3.8\twisted\test
copying src\twisted\test\server.pem -> build\lib.win32-3.8\twisted\test
copying src\twisted\test\test_defer.py.3only -> build\lib.win32-3.8\twisted\test
copying src\twisted\internet\iocpreactor\notes.txt -> build\lib.win32-3.8\twisted\internet\iocpreactor
copying src\twisted\internet\test\_awaittests.py.3only -> build\lib.win32-3.8\twisted\internet\test
copying src\twisted\internet\test\_yieldfromtests.py.3only -> build\lib.win32-3.8\twisted\internet\test
creating build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\chain.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\not-a-certificate -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing1.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2-duplicate.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\internet\test\fake_CAs\thing2.pem -> build\lib.win32-3.8\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win32-3.8\twisted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win32-3.8\twisted\python\test
copying src\twisted\trial\test\_assertiontests.py.3only -> build\lib.win32-3.8\twisted\trial\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win32-3.8\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win32-3.8\twisted\words\xish
running build_ext
building 'twisted.test.raiser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
I totally new to python and scrapy. I've been using python ok for a few days now and wanted to add scrapy. I tried to install scrapy via the command prompt, typing in "pip install scrapy". it downloaded something, started installing but soon exited in failure. below are the last lines of a massive error log;
ERROR: Command errored out with exit status 1: 'c:\users\thega\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\thega\AppData\Local\Temp\pip-install-o99u8knn\Twisted\setup.py'"'"'; file='"'"'C:\Users\thega\AppData\Local\Temp\pip-install-o99u8knn\Twisted\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\thega\AppData\Local\Temp\pip-record-b2nn016h\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Have you installed Microsoft Visual C++ 14.0?
The last line in the error log says:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/"
The link works fine for me.
Related
I've tried installing zipline-trader according to instructions given on zipline-trader installation page: https://zipline-trader.readthedocs.io/en/latest/install.html
All goes fine until actually running the installation command. Neither of these work:
pip install -e .
or
pip install zipline-trader
Installation starts, but problems begin when starting to build wheel for zipline-trader.
I'm not a huge computer wizard, so if someone could help me out here and tell me where the problem is. it would be much appreciated.
The error messages are below (very long list):
Building wheels for collected packages: bcolz, bottleneck, lru-dict
Building wheel for bcolz (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\matti\Zipline\venv-zipline\Scripts\python.exe' -u -c 'import sys, setuptools,
tokenize; sys.argv[0] = '"'"'C:\\Users\\matti\\AppData\\Local\\Temp\\pip-install-
u0djao1v\\bcolz_ff25721e67224cf19d0fea2b456a1054\\setup.py'"'"';
__file__='"'"'C:\\Users\\matti\\AppData\\Local\\Temp\\pip-install-
u0djao1v\\bcolz_ff25721e67224cf19d0fea2b456a1054\\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\matti\AppData\Local\Temp\pip-wheel-yk9_l_0r'
cwd: C:\Users\matti\AppData\Local\Temp\pip-install-
u0djao1v\bcolz_ff25721e67224cf19d0fea2b456a1054\
Complete output (42 lines):
SSE2 detected
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\bcolz
copying bcolz\arrayprint.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\attrs.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\chunked_eval.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\ctable.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\defaults.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\py2help.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\py2help_tests.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\toplevel.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\utils.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\version.py -> build\lib.win-amd64-3.6\bcolz
copying bcolz\__init__.py -> build\lib.win-amd64-3.6\bcolz
creating build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\all.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\common.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_attrs.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_carray.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_carray_objects.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_ctable.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_ndcarray.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\test_queries.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\tests\__init__.py -> build\lib.win-amd64-3.6\bcolz\tests
copying bcolz\carray_ext.pxd -> build\lib.win-amd64-3.6\bcolz
running build_ext
skipping 'bcolz\carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
SSE2 detected
running bdist_wheel
running build
running build_py
copying bcolz\version.py -> build\lib.win-amd64-3.6\bcolz
running build_ext
skipping 'bcolz\carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for bcolz
Running setup.py clean for bcolz
Building wheel for bottleneck (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\matti\Zipline\venv-zipline\Scripts\python.exe' 'C:\Users\matti\Zipline\venv-
zipline\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel
'C:\Users\matti\AppData\Local\Temp\tmpi6jwni9b'
cwd: C:\Users\matti\AppData\Local\Temp\pip-install-
u0djao1v\bottleneck_4c2f93e8934942d2b56b70de3502ceed
Complete output (51 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\bottleneck
copying bottleneck\_pytesttester.py -> build\lib.win-amd64-3.6\bottleneck
copying bottleneck\_version.py -> build\lib.win-amd64-3.6\bottleneck
copying bottleneck\__init__.py -> build\lib.win-amd64-3.6\bottleneck
creating build\lib.win-amd64-3.6\bottleneck\benchmark
copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.6\bottleneck\benchmark
copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.6\bottleneck\benchmark
copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.6\bottleneck\benchmark
copying bottleneck\benchmark\__init__.py -> build\lib.win-amd64-3.6\bottleneck\benchmark
creating build\lib.win-amd64-3.6\bottleneck\slow
copying bottleneck\slow\move.py -> build\lib.win-amd64-3.6\bottleneck\slow
copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.6\bottleneck\slow
copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.6\bottleneck\slow
copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.6\bottleneck\slow
copying bottleneck\slow\__init__.py -> build\lib.win-amd64-3.6\bottleneck\slow
creating build\lib.win-amd64-3.6\bottleneck\src
copying bottleneck\src\bn_config.py -> build\lib.win-amd64-3.6\bottleneck\src
copying bottleneck\src\bn_template.py -> build\lib.win-amd64-3.6\bottleneck\src
copying bottleneck\src\__init__.py -> build\lib.win-amd64-3.6\bottleneck\src
creating build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\input_modification_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\list_input_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\memory_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\move_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\nonreduce_axis_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\nonreduce_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\reduce_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\scalar_input_test.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\util.py -> build\lib.win-amd64-3.6\bottleneck\tests
copying bottleneck\tests\__init__.py -> build\lib.win-amd64-3.6\bottleneck\tests
UPDATING build\lib.win-amd64-3.6\bottleneck/_version.py
set build\lib.win-amd64-3.6\bottleneck/_version.py to '1.3.2'
running build_ext
running config
compiling '_configtest.c':
int __attribute__((optimize("O3"))) have_attribute_optimize_opt_3(void*);
int main(void)
{
return 0;
}
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for bottleneck
Building wheel for lru-dict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\matti\Zipline\venv-zipline\Scripts\python.exe' -u -c 'import sys, setuptools,
tokenize; sys.argv[0] = '"'"'C:\\Users\\matti\\AppData\\Local\\Temp\\pip-install-u0djao1v\\lru-
dict_78af74fc04d748028bedabc5a1d6a84d\\setup.py'"'"';
__file__='"'"'C:\\Users\\matti\\AppData\\Local\\Temp\\pip-install-u0djao1v\\lru-
dict_78af74fc04d748028bedabc5a1d6a84d\\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\matti\AppData\Local\Temp\pip-wheel-qiws589m'
cwd: C:\Users\matti\AppData\Local\Temp\pip-install-u0djao1v\lru-
dict_78af74fc04d748028bedabc5a1d6a84d\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
`enter code here`https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build bcolz bottleneck lru-dict
ERROR: Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly
From my experience of installing python packages, I think the problem is most likely dependencies and packages already installed in the python environment you are trying to install zipline trader. I suggest creating a new python environment with python version 3.6 and cloning the git and trying to install with that using these two commands:
git clone https://github.com/shlomikushchi/zipline-trader.git
then inside the directory that you downloaded that git:
pip install -e .
I did this in an anaconda environment and it worked for me.
You need this package for cloning git in anaconda:
conda install -c anaconda git
You can check out instructions here too.
I tried installing this pip but getting some error, I want this package module for load testing
This is the output i am getting:
Collecting locustio
Collecting geventhttpclient-wheels==1.3.1.dev2 (from locustio)
Using cached https://files.pythonhosted.org/packages/bc/7f/42f8b4ac6c7ddf606fa69769cef2229a159d4af45a294053198f52586095/geventhttpclient-wheels-1.3.1.dev2.tar.gz
Requirement already satisfied: six in c:\users\saurabh\appdata\local\programs\python\python38\lib\site-packages (from geventhttpclient-wheels==1.3.1.dev2->locustio) (1.14.0)
Requirement already satisfied: pycparser in c:\users\saurabh\appdata\local\programs\python\python38\lib\site-packages (from cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"->gevent==20.4.0->locustio) (2.20)
Running setup.py install for geventhttpclient-wheels: started
Running setup.py install for geventhttpclient-wheels: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\setup.py'"'"'; __file__='"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\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\SauraBh\AppData\Local\Temp\pip-record-ipuoqz4r\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\SauraBh\AppData\Local\Temp\pycharm-packaging\geventhttpclient-wheels\
Complete output (45 lines):
C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py:471: UserWarning: Normalizing '1.3.1dev2' to '1.3.1.dev2'
warnings.warn(
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\client.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\connectionpool.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\header.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\httplib.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\response.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\url.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\useragent.py -> build\lib.win-amd64-3.8\geventhttpclient
copying src\geventhttpclient\__init__.py -> build\lib.win-amd64-3.8\geventhttpclient
running egg_info
writing src\geventhttpclient_wheels.egg-info\PKG-INFO
writing dependency_links to src\geventhttpclient_wheels.egg-info\dependency_links.txt
writing requirements to src\geventhttpclient_wheels.egg-info\requires.txt
writing top-level names to src\geventhttpclient_wheels.egg-info\top_level.txt
reading manifest file 'src\geventhttpclient_wheels.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'src\geventhttpclient_wheels.egg-info\SOURCES.txt'
creating build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\oncert.pem -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\server.crt -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\server.key -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_client.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_headers.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_httplib.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_keep_alive.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_network_failures.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_no_module_ssl.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_parser.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_ssl.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_url.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
copying src\geventhttpclient\tests\test_useragent.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'geventhttpclient._parser' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\setup.py'"'"'; __file__='"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\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\SauraBh\AppData\Local\Temp\pip-record-ipuoqz4r\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
I have Microsoft Visual C++ 14.0.25 is installed in my system.
If someone knows any better tool/framework/package for testing api using python please help me. I want to check the registration api with many users at a time.
If Dmitri's suggestion doesnt help, you might want to try this:
pip install -U setuptools
And update to latest locust:
pip install -U locust
(Edit: locust package name is now ”locust”, not ”locustio”)
What you need is not Visual Studio, you need Visual C++ build tools
You can install it using using Visual Studio Installer, you just need to tick the relevant box under the C++ components:
You might also be interested in How to Run Locust with Different Users article
Trying to install module "psutil"
I'm usting Windows 10 and pypy 2.7 version
https://pypy.org/download.html
pypy -m pip install psutil
DEPRECATION: 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 psutil
Using cached https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz
Installing collected packages: psutil
Running setup.py install for psutil ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\pypy2.7-v7.1.1-win32\pypy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"'; __file__='"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\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\public\documents\wondershare\creatortemp\pip-record-58j8zq\install-record.txt' --single-version-externally-managed --compile
cwd: c:\users\public\documents\wondershare\creatortemp\pip-install-orbh2p\psutil\
Complete output (49 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\psutil
copying psutil\_common.py -> build\lib.win32-2.7\psutil
copying psutil\_compat.py -> build\lib.win32-2.7\psutil
copying psutil\_psaix.py -> build\lib.win32-2.7\psutil
copying psutil\_psbsd.py -> build\lib.win32-2.7\psutil
copying psutil\_pslinux.py -> build\lib.win32-2.7\psutil
copying psutil\_psosx.py -> build\lib.win32-2.7\psutil
copying psutil\_psposix.py -> build\lib.win32-2.7\psutil
copying psutil\_pssunos.py -> build\lib.win32-2.7\psutil
copying psutil\_pswindows.py -> build\lib.win32-2.7\psutil
copying psutil\__init__.py -> build\lib.win32-2.7\psutil
creating build\lib.win32-2.7\psutil\tests
copying psutil\tests\runner.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_aix.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_memory_leaks.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\__init__.py -> build\lib.win32-2.7\psutil\tests
copying psutil\tests\__main__.py -> build\lib.win32-2.7\psutil\tests
running build_ext
building 'psutil._psutil_windows' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\psutil
creating build\temp.win32-2.7\Release\psutil\arch
creating build\temp.win32-2.7\Release\psutil\arch\windows
C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_WINNT=0x0602 -D_AVAIL_WINVER_=0x0602 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Program Files (x86)\pypy2.7-v7.1.1-win32\include /Tcpsutil/_psutil_common.c /Fobuild\temp.win32-2.7\Release\psutil/_psutil_common.obj
_psutil_common.c
psutil/_psutil_common.c(49) : error C2065: 'ESRCH' : undeclared identifier
psutil/_psutil_common.c(49) : error C2065: 'ESRCH' : undeclared identifier
psutil/_psutil_common.c(66) : warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
psutil/_psutil_common.c(86) : error C2065: 'EACCES' : undeclared identifier
psutil/_psutil_common.c(86) : error C2065: 'EACCES' : undeclared identifier
error: command 'C:\\Users\\xxx\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy2.7-v7.1.1-win32\pypy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\setup.py'"'"'; __file__='"'"'c:\\users\\public\\documents\\wondershare\\creatortemp\\pip-install-orbh2p\\psutil\\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\public\documents\wondershare\creatortemp\pip-record-58j8zq\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
enter image description here
I've already installed Microsoft Visual C++ Compiler for Python 2.7
https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
It looks like a missing #include <errno.h> somewhere. Is that include somehow on a conditional branch that is not included for pypy?
When I tried to install mysql in python
using this command python -m pip install mysql
can anyone help me with this?
Collecting mysql Using cached mysql-0.0.1.tar.gz Collecting
MySQL-python (from mysql) Using cached MySQL-python-1.2.5.zip
Installing collected packages: MySQL-python, mysql Running setup.py
install for MySQL-python ... error
Complete output from command C:\Users\vishnuvardhan12137\AppData\Local\Programs\Python\Python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\VISHNU~1\AppData\Local\Temp\pip-build-lw04ypbu\MySQL-python\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\VISHNU~1\AppData\Local\Temp\pip-0awclynb-record\install-record.txt
--single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
copying _mysql_exceptions.py -> build\lib.win32-3.6
creating build\lib.win32-3.6\MySQLdb
copying MySQLdb__init__.py -> build\lib.win32-3.6\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.6\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.6\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.6\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.6\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.6\MySQLdb
creating build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants__init__.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.6\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.6\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools
---------------------------------------- Command "C:\Users\vishnuvardhan12137\AppData\Local\Programs\Python\Python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\VISHNU~1\AppData\Local\Temp\pip-build-lw04ypbu\MySQL-python\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\VISHNU~1\AppData\Local\Temp\pip-0awclynb-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
C:\Users\VISHNU~1\AppData\Local\Temp\pip-build-lw04ypbu\MySQL-python\
It says that it requires Microsoft Visual C++ 14.0. Have you tried installing that version of Microsoft Visual C++? And do take a look at this post too. Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
Go to this website:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Get your compatible mysqlclient version as per python version and windows version 32/64 bit then run following command
pip install mysqlclient-1.4.2-cp37-cp37m-win32.whl
in my case it was python 3.7 and 32-bit Windows so I downloaded such file mysqlclient-1.4.2-cp37-cp37m-win32.whl
I've run following command in command line. Please see the execution and error at the end of the code:
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio
10.0\VC\BIN\cl .exe' failed with exit status 2
D:\Python34>pip install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Installing collected packages: MySQL-python
Running setup.py install for MySQL-python
Complete output from command D:\Python34\python.exe -c "import setuptools, t
okenize;__file__='C:\\Users\\Irfan\\AppData\\Local\\Temp\\pip-build-i5dqkio1\\My
SQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).rea
d().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Irfan\A
ppData\Local\Temp\pip-v08vge52-record\install-record.txt --single-version-extern
ally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.4
copying _mysql_exceptions.py -> build\lib.win32-3.4
creating build\lib.win32-3.4\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.4\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.4\MySQLdb
creating build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.4\MySQLdb\constan
ts
copying MySQLdb\constants\CR.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.4\MySQLdb\const
ants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.4\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.4\MySQLdb\constant
s
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.4\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /
MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\
Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -ID:\Python34\include
-ID:\Python34\include /Tc_mysql.c /Fobuild\temp.win32-3.4\Release\_mysql.obj /Z
l
_mysql.c
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':
No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl
.exe' failed with exit status 2
----------------------------------------
Command "D:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:
\\Users\\Irfan\\AppData\\Local\\Temp\\pip-build-i5dqkio1\\MySQL-python\\setup.py
';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record C:\Users\Irfan\AppData\Local\Temp\pi
p-v08vge52-record\install-record.txt --single-version-externally-managed --compi
le" failed with error code 1 in C:\Users\Irfan\AppData\Local\Temp\pip-build-i5dq
kio1\MySQL-python
MySQL-Python is not compatible with Python 3.4. Please use mysqlclient https://pypi.python.org/pypi/mysqlclient