I am getting following error in installing Cassandra driver for python.
Command "c:\python33\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\vmasama\\appdata\\local\\temp\\pip-build-we10p7\\cassandra-driver\\setup
.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n
', '\n'), __file__, 'exec'))" install --record c:\users\vmasama\appdata\local\te
mp\pip-olh8j5-record\install-record.txt --single-version-externally-managed --co
mpile" failed with error code 1 in c:\users\vmasama\appdata\local\temp\pip-build
-we10p7\cassandra-driver\
Any one have any idea about this ? What am i missing ?
Following errors were also there when i run pip install cassandra-driver
Failed building wheel for cassandra-driver
Failed cleaning build dir
for cassandra-driver
python version : 3.3
I tried it in an environment missing compiler paths and observed something similar. I think it's a problem in setuptools error handling when it doesn't find what it's expecting. The easiest way I've found is to use the VS Command Prompt shortcut installed with Visual Studio:
Perhaps the easiest way to do this is to run the build/install from a Visual Studio Command Prompt (a shortcut installed with Visual Studio that sources the appropriate environment and presents a shell).
http://datastax.github.io/python-driver/installation.html#windows-installation-notes
Related
Win10, python3.5.6 and I have Conda installed.
When I try to install SQLAlchemy like follows using cmd in CLI, I get errors.
pip install SQLAlchemy
copying lib\sqlalchemy\testing\suite\test_update_delete.py -> build\lib.win-amd64-3.5\sqlalchemy\testing\suite
copying lib\sqlalchemy\testing\suite\__init__.py -> build\lib.win-amd64-3.5\sqlalchemy\testing\suite
running build_ext
error: [WinError 2] The system cannot find the file specified
Failed building wheel for SQLAlchemy
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xby\\AppData\\Local\\Temp\\pip-install-ebkmu2f_\\SQLAlchemy\\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\xby\AppData\Local\Temp\pip-record-b0kltmo1\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\xby\AppData\Local\Temp\pip-install-ebkmu2f_\SQLAlchemy\
Can anyone give me a clue? Thanks in advance.
OK, finally I get this tricky problem solved.
It's all because of lack of compiler on the windows system, because I didn't install VS or any of other compilers.
So I managed to install a substitute one:
http://mingw-w64.org
after installed, run cmd like this(for 64bit system):
python setup.py install build --compiler=mingw64
ofter this, every thing works smoothly.
Hope this helps to someone get stuck as me.
I am trying to install the Python module simplecrypto on a Windows machine. To do this I run the following:
C:\Python36\Scripts>pip install simplecrypto
However, upon running this partway through the installation process I receive the following error:
...
Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib'
----------------------------------------
Command "c:\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\EDM-P\\AppData\\Local\\Temp\\pip-build-teqxfnwt\\PyCrypto\\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\EDM-P\AppData\Local\Temp\pip-nrmsip8r-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\EDM-P\AppData\Local\Temp\pip-build-teqxfnwt\PyCrypto\
Why is this the case?
An error occurs when it attempts to install PyCrypto, which is a requirement of the package. The GitHub README mentions:
If the dependency installation fail on Windows, you may want to use a
prebuilt installer. If you wish to compile it I suggest using the
Mingw tools as indicated here.
Install it from here and then compile by
install MinGW with C++ Compiler option checked add C:\MinGW\bin to
your PATH in PYTHONPATH\Lib\distutils, create a file distutils.cfg and
add these lines:
[build] compiler=mingw32
I was trying to install 'ffnet' module in Python but even after installing Microsoft Visual Studio C++ and mingw32.
But these are the errors which are showing up:
1.' Failed building wheel for ffnet'
2.#Command "c:\anaconda3\python.exe -u -c "import setuptools, #tokenize;__file__='C:\\Users\\AKSHAY~1.BAB\\AppData\\Local\\Temp\\pip-build-#930xyr3q\\ffnet\\setup.py';exec(compile(getattr(tokenize, 'open', open)####(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record #C:\Users\AKSHAY~1.BAB\AppData\Local\Temp\pip-_pl92yit-record\install-record.txt #--single-version-externally-managed --compile" failed with error code 255 in C:\Users\AKSHAY~1.BAB\AppData\Local\Temp\pip-build-930xyr3q\ffnet\
Please anyone Help me with this.
On Windows + Python-3.5 fortran extensions cannot be built
anymore with f2py and mingw32 compilers, because of new MSVC used for python build. See: Build fortran extension on Windows with gfortran and MSVC
Maybe you could try python 3.4 instead?
So, I have going over this back and forth, I tried several of the solutions on this forum, none worked.
I have pip3 installed, Python 3.4, Visual Studio 2015 on Windows 10.
Now whenever I run the installing for a new module manually or through pip3 I get the following error:
Say I use the cmdline as such:
pip3 install numpy
I get :
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\users\ariel\appdata\local\programs\python\python35-32\python.exe -c
"import setuptools, tokenize;__file__='C:\\Users\\Ariel
\\AppData\\Local\\Temp\\pip-build-41rz6w_o\\numpy\\setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))" install --record
C:\Users\Ariel\AppData\Local\Temp\pip-vuq3ap0m-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1
in C:\Users\Ariel\AppData\Local\Temp\pip-build-41rz6w_o\numpy
If I download it and run it from the folder
setup.py install
I get
build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
error: Unable to find vcvarsall.bat
Please help, considering to just use linux with python... less issues
This is based on #Jim answers in the comment section, basically make sure that you have the C++ compiler and windows SDK installed!
My problem was that when I installed Visual Studio, I did not select the windows SDK.
I've been working on a python script, first using the Psychopy compiler, which already included all I needed, but now I need to make it the more independent as possible. I have the script working on a Windows computer, but I also want it to work in OSX.
The script uses pyglet and I followed this post in order to install it. However, when I reach the latest step, which is installing PyObjc, I have the following error:
40 warnings and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip_build_JL/pyobjc-core/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip-HfEjaW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip_build_JL/pyobjc-core
Storing debug log for failure in /Users/JL/.pip/pip.log
Why does this error appears? What can I do to solve it?
Terminal post:
xcode-select --install
may be can help you.
Try installing pyobjc separately first.
On OSX 10.7 or 10.8, try:
env CC=clang pip -U pyobjc-core
env CC=clang pip -U pyobjc
On OSX 10.9, try:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pyobjc