Having trouble installing mpi4py with Intel MPI - pip

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'.

Related

How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install torch-sparse using pip

ERROR: Command errored out with exit status 1: 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"'; file='"'"'C:\Users\Asus\AppData\Local\Temp\pip-install-jhzv1wn5\torch-sparse_4aec990c4f4d470caa0dfbf1c9b31f43\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Asus\AppData\Local\Temp\pip-record-dap1raq5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\Hossein\Python\python Project\pythorch\venv\include\site\python3.9\torch-sparse' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 23.0 is available.
You should consider upgrading via the 'E:\Hossein\Python\python Project\pythorch\venv\Scripts\python.exe -m pip install --upgrade pip' command.

pip install error when I install fbprophet

(I'm not good at English sorry)
I have an error when I install fbprophet for windows command.
I already installed pystan and cython.
I use Windows 10, python 3.9 version.
maybe, Am I having a problem with the compiler?
The error comment is (korea language in error is not really important thing), -->
=== error in building with wheel ===
ERROR: Command errored out with exit status 1:
command: 'c:\users\kstar\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"'; file='"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\kstar\AppData\Local\Temp\pip-wheel-b98qkky1'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
.
.
.
=== error in running setup.py ===
ERROR: Command errored out with exit status 1:
command: c:\users\kstar\appdata\local\programs\python\python39\python.exe -u -c import io, os, sys, setuptools, tokenize; sys.argv[0] = C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py; file=C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py;f = getattr(tokenize, '"'"'open, open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup());code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\kstar\AppData\Local\Temp\pip-record-avm6oqpp\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\kstar\appdata\local\programs\python\python39\Include\fbprophet'
cwd: C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
Complete output (288 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_f5236004a3fd5b8429270d00efcc0cf9 NOW.
WARNING:pystan:MSVC compiler is not supported
stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_296405994888268896.cpp
c:\users\kstar\appdata\local\programs\python\python39\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
following has worked for me before:
pip install localpip
localpip install fbprophet
from fbprophet import Prophet

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?

Problem installing "fastai" on macOS 10.15

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.

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

Resources