Trouble installing simulation package in Google Colab - pip

Both !pip install simulation and !pip3 install simulation are failing on my Colab instance.
Both are giving me
Failed building wheel for scikit-sparse
Running setup.py clean for scikit-sparse
Failed to build scikit-sparse
...
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I tried !pip install scikit-sparse==0.4.4 and I'm getting the same.

Does this unblock you?
!apt-get install libsuitesparse-dev && pip install scikit-sparse==0.4.4

Related

Error Installing FastAI on Windows: bdist_wheel did not run successfully

I have been trying to install fastai in a virtual environment on my windows computer, and continue getting the error below.
I used conda to create a virtual environment, and am attempting to pip install fastai with Python 3.11.
Haven't had any issues installing other packages in this environment, so any thoughts would be appreciated.
Building wheel for bcolz (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
C:\Users\username\miniconda3\envs\Ron\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
I have been on a number of forums, have tried pip install wheel and a pip3 install to no avail.
My system info is:
OS Name Microsoft Windows 11 Home
Version 10.0.22621 Build 22621

ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects

I want to install mpi4py.
The installation fails with the error below.
Please share the solution to the same error.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mpi4py
Failed to build mpi4py
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects
[notice] A new release of pip available: 22.3 -> 22.3.1
[notice] To update, run: python -m pip install --upgrade pip
I installed pyproject-toml with "pip install pyproject-toml".
But mpi4py still won't install.
My python version is Python 3.8.0.
The following worked for me:
sudo apt update
sudo apt-get install libopenmpi-dev
It seems that related packages are twisted.
Installed by following the steps below.
apt --fix-broken install
apt install mpich
pip install mpi4py
For me it worked when I used sudo before:
sudo pip install mpi4py
I had the same error message. I used the Anaconda-Navigator interface and it worked fine.
Another option is to use brew. If OpenMPI isn't a dependency issue for you, the installation worked when I used it as well.
brew install mpi4py

Cannot install erdpy on macOS - failed building wheel for pynacl

I'm trying to install erdpy on a macOS by following the official guide, I successfully managed to download erdpy-up and when I run it, I receive the following error:
File "/opt/homebrew/Cellar/python#3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 161, in run
raise Exception("ERROR: The 'make' utility is missing from PATH")
Exception: ERROR: The 'make' utility is missing from PATH
----------------------------------------
ERROR: Failed building wheel for pynacl
Failed to build pynacl
ERROR: Could not build wheels for pynacl which use PEP 517 and cannot be installed directly
CRITICAL:installer:Could not install erdpy.
Right before that, I see:
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycryptodomex, since package 'wheel' is not installed.
Building wheels for collected packages: pynacl
Building wheel for pynacl (PEP 517) ... error
Tried to install libsodium using brew but erdpy installation still failed.
Is there another way to install / build it?
I have make installed on my system. The log message is not very clear, but in the end I figured out how I can install erdpy on my Mac.
First I installed libsodium:
brew install libsodium
and then I installed erdpy using pip3:
pip3 install --user --upgrade --no-cache-dir erdpy
Then erdpy -v returns
erdpy 1.0.18
Your error says you don't have the make utility installed.
Install it by executing
brew install make
in your terminal. Then retry the installation.
You could also activate the virtualenv with source ~/elrondsdk/erdpy-activateand then use pip3 install --upgrade --no-cache-dir erdpy.
If you have the M1 processor, it won't install on Mac. You will have to remote connect to a linux system. VS code has the ability to do this, or you could use parallels and run a linux VM locally.

Getting ERROR When I install 'OpenAI baselines' in Windows with 'pip install -e'

I'm new to python, and I want to install OpenAI baselines in Windows. And I follow the official installation guidance in https://github.com/openai/baselines. But when I run the code pip install -e ., I get the following wrong:
I think maybe I need to modify the setup.py, but I don't know how to solve.
assert LooseVersion(re.sub(r'-?rc\d+$', '', tf_pkg.version)) >= LooseVersion('1.4.0')
AssertionError
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in D:\myGitHub\baselines\
https://github.com/openai/baselines/blob/1b092434fc51efcb25d6650e287f07634ada1e08/setup.py#L61:
TensorFlow needed, of version above 1.4
So run pip install -U tensorflow or pip install -U tensorflow-gpu if you have a supported GPU.

I am in trouble while installing psycophy

I am installing psychopy package using pip install and I am facing the following error:
ImportError: No module named 'preferences'
Command "python setup.py egg_info" failed with error code 1
I've already installed preferences package and this error keep on showing up.
I stumbled upon the same problem, and it seems like installing 'django-preferences' helped me
sudo pip install django-preferences
Hope this helps.

Resources