Problem installing "fastai" on macOS 10.15 - pip

When running pip3 install fastai I get the following error:
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"'; __file__='"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-record-7y_ev9f3/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pynvx
Do you have any idea what the problem is?
There is another error saying I have to install CMake but I already installed it.

I do not know if this is your problem (I'm a bit of a novice with this stuff), but I also was trying to install fastai with python 3.8 on macOS 10.15 and it failed on pynvx compilation.
I was able to get fastai to install, by ignoring its dependencies (and therefore pynvx), but was still able to successfully execute the libraries that required fastai. I did this:
pip install --no-deps fastai
and then ran my scripts. Can't say I understand why this works, but in the hopes that it does for you, I'm responding.

Related

Cant install Vowpal Wabbit on Mac

I am trying to install Vowpal Wabbit via pipenv install. But failed with the following error.
ERROR: Command errored out with exit status 1: /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/setup.py'"'"'; __file__='"'"'/private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-install-rjmca3xe/vowpalwabbit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/6b/nnn57rdn6ps7h0pn78h8hnrm0000gp/T/pip-record-80qogib2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/johnchan/.local/share/virtualenvs/ATEC-s3CStNz5/include/site/python3.8/vowpalwabbit Check the logs for full command output.
We just released version 8.9, which comes with binary wheels. If you try installing now it should be simpler:
pip install vowpalwabbit==8.9.0
If there are still issue can you provide the full log output?

Having trouble installing mpi4py with Intel MPI

The title says it all. I have Intel MPI installed on my AWS instance and have sourced it to activate, and which mpiexec works and tells me its the Intel MPI. I don't have any other MPI installed right now. $MPICC is set as well.
Running
pip install mpi mpi4py --no-cache-dir
leads to the following error (this is the last paragraph, see also full error message):
ERROR: Command errored out with exit status 1: /home/ubuntu/miniconda3/envs/IQS/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1k4oxnqu/mpi4py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1k4oxnqu/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dj568ctj/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/miniconda3/envs/IQS/include/python3.8/mpi4py Check the logs for full command output.
I think I figured it out. I had linked the wrong mpicc, the one from source and not compiled. I realized this when I did 'which mpicc'.

error with exit status 1 while installing spyder terminal

ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-z3vdlz4p\pywinpty\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-z3vdlz4p\pywinpty\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\Admin\AppData\Local\Temp\pip-record-z99eojcg\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38-32\Include\pywinpty' Check the logs for full command output.
You have a 32 bit version of python installed as your isntallation directory python38-32 suggests. Looking at your error, it fails when trying to install pywinpty. A quick look at github shows that 32 bit is not supported by them. There is probably no reason for you to not have the 64 bit version of python, so simply remove the 32 bit version and install the 64 bit version. Then try again

Failed building wheel for PySide when installing pyside on Mac

I have installed:
*Python 3.6.1
*qt/5.9.1
*sip-4.19.3
When I type
pip install pyside
Or
pip install -U PySide
I always get the error bellow:
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Building wheels for collected packages: PySide
Running setup.py bdist_wheel for PySide ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/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 /var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/tmp5VfNR7pip-wheel- --python-tag cp27:
Removing /private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/pyside_package
running bdist_wheel
running build
Python architecture is 64bit
error: Failed to find qmake. Please specify the path to qmake with --qmake parameter.
----------------------------------------
Failed building wheel for PySide
Running setup.py clean for PySide
Failed to build PySide
Installing collected packages: PySide
Running setup.py install for PySide ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-lTCccK-record/install-record.txt --single-version-externally-managed --compile:
Removing /private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/pyside_package
running install
running build
Python architecture is 64bit
error: Failed to find qmake. Please specify the path to qmake with --qmake parameter.
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools,
tokenize;__file__='/private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n','\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-lTCccK-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/tv/4rb2txws5ml_cwj0v060ym_80000gn/T/pip-build-jscv9F/PySide/
Ok, I finally found a "solution".
First of all, I am not an expert (I am super new coding).
Based on my own experience below you will find a solution as well.
I need to clarify something first, there are two ways to use this GUI QT - PyQt by Riverbank Computing or(and) PySide, originally developed by Nokia.
I tried many differents ways to install PySide, but no success, so I ended up finding PyQt, that does the same thing.
Watching this video I installed the PyQT5 in my Mac OS and now it is working.
https://www.youtube.com/watch?v=2kHk8ZjxH64
Example of Hello World using PyQT
http://pythoncentral.io/intro-to-pysidepyqt-basic-widgets-and-hello-world/
The wiki.qt.io says
"PySide has included support for Python 3.2 since version 1.0.8." but it doesn't work for me.
Good lucky.

Error installing scipy using pip on Windows 10 32 bit

Installing scipy using pip gives me following error.
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\arun\appdata\local\temp\pip-build-nlwjdr\scipy\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\arun\appdata\local\temp\pip-5qc2vr-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\arun\appdata\local\temp\pip-build-nlwjdr\scipy\
Tried cloning the scipy from github and running setup command. No luck.
python setup.py install
UPDATE: Installed Windows binary available at this link and it worked
http://sourceforge.net/projects/scipy/files/scipy/0.11.0/scipy-0.11.0-win32-superpack-python2.7.exe/download

Resources