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?
Related
I have a problem with install weka by pip install python-weka-wrapper3. (The solution here did not work with me).
This error appears when I am trying to run the command above:
Command "c:\users\nujou\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nujou\\AppData\\Local\\Temp\\pip-build-ctvavwi1\\javabridge\\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\Nujou\AppData\Local\Temp\pip-cdmf95_m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Nujou\AppData\Local\Temp\pip-build-ctvavwi1\javabridge\
EDIT:
the problem was:
"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": visualstudio.microsoft.com/downloads"
therefore, it is solved by downloading Microsoft Visual C++ Build Tools.
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 used the following code to install scikit-bio from Spyder 3, but it showed error. Therefore, could anyone please help? many thanks
Code:
import pip
pip.main (['install', 'scikit-bio'])
Error:
Command "C:\Users\vanna\AppData\Local\Continuum\anaconda3\pythonw.exe -u -c "import setuptools, tokenize;file='C:\Users\vanna\AppData\Local\Temp\pip-build-_nvm7kff\scikit-bio\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\vanna\AppData\Local\Temp\pip-cpfgc63d-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\vanna\AppData\Local\Temp\pip-build-_nvm7kff\scikit-bio\
I had a similar error message during pip installation on CPython (Win 10 x64).
Upgrading setuptools
pip install setuptools --upgrade
and installing build tools for most recent Visual Studio resolved the issue.
Just like here.
Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
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
I am a windows7 64-bit user working with Python 3.4.
I installed M2Crypto library. I followed the steps mentioned in this link for installing M2Crypto on Windows: https://github.com/martinpaljak/M2Crypto/blob/master/INSTALL
I have Microsot Visual Studeio 2013 community edition installed. I also have Visual c++ 2008, 2010, 2012 redistributable for bith x86 and x64.
I have the MinGW and Swigwin installed in the C: directory.
when I try to install M2Crypto using this command from the Python34/Scripts:
pip install m2crypto
I get errors as the following:
> C:\Python34\Scripts>pip install m2crypto Collecting m2crypto Using
> cached M2Crypto-0.22.3.tar.gz Installing collected packages: m2crypto
> Running setup.py install for m2crypto
> Complete output from command C:\Python34\python.exe -c "import setuptools, t
> okenize;__file__='C:\\Users\\e\\AppData\\Local\\Temp\\pip-build-sxa0uziu\\m2cryp
> to\\setup.py';exec(compile(getattr(tokenize, 'open',
> open)(__file__).read().repl ace('\r\n', '\n'), __file__, 'exec'))"
> install --record C:\Users\e\AppData\Local
> \Temp\pip-ad2ukv1d-record\install-record.txt
> --single-version-externally-managed --compile:
then it copies a list of files. At thie end I get this:
> error: Microsoft Visual C++ 10.0 is required (Unable to find
> vcvarsall.bat).
followed by this:
> Command "C:\Python34\python.exe -c "import setuptools,
> tokenize;__file__='C:\\Us
> ers\\e\\AppData\\Local\\Temp\\pip-build-sxa0uziu\\m2crypto\\setup.py';exec(compi
> le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n',
> '\n'), __fil e__, 'exec'))" install --record
> C:\Users\e\AppData\Local\Temp\pip-ad2ukv1d-recor d\install-record.txt
> --single-version-externally-managed --compile" failed with error code 1 in C:\Users\e\AppData\Local\Temp\pip-build-sxa0uziu\m2crypto
Please, help me fix the issue. I could not find a resource that describe the steps properly.
You need to run pip install from a command prompt with both the needed python programms and visual studio in the search path. (PATH)
Open a Visual C++ command prompt and note the result of
echo %PATH%
and add the relevant visual c++ / visual studio directories to your python command prompt similar to this
set PATH=C:\path\to\VS;%PATH%