Environment is Python 3.5 and CentOS 7.0 in VPS (XEN).
I use IUS repository for CentOS7 to install Python 3.5 and corresponding devel, setuptools packages.
Then upgrade pip3.5 itself by
sudo pip3.5 install upgrade pip
Numpy and Matplotlib can be installed by pip 3.5 without any problem.
sudo pip3.5 install numpy
sudo pip3.5 install matplotlib
But when I try to install scipy, it got stuck at the step running setup.py like forever. Only way to get rid of this is Ctrl+C. Tried several times, even reinstall CentOS and compile Python3.5 from source code. Always the same issue happens.
Collecting scipy
Using cached scipy-0.17.0.tar.gz
Installing collected packages: scipy
Running setup.py install for scipy ... \
Could someone help me out please?
update (Feb 9th 2016):
A 1.5GB swapfile is created manually, which is none originally. Then after about 2 hours waiting, it is finally installed. I guess the relatively low performance of server leads to this problem.
Related
I have created a new virtual environment with nothing else in it and I try to install
pip install scipy==1.4.1
However this returns the following error
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
This has been solved before by running
pip install --upgrade pip
However this does not work for me and I get the same error as before. If however I try and install the latest version of scipy there are no issues. Does anyone know a way around this? Maybe I need a less up to date version of python but I am really not sure.
Probably your python version is too new for this specific scipy version, use a earlier python version to solve the problem.
Install a specific python version (i.e. 3.7.4) from https://www.python.org/downloads/
Create virtual environment with pipenv:
pipenv shell --python 3.7.4
(and activate virtual environment)
Install scipy==1.4.1
When I try to install scipy for 3.4 it throws this error when I run this command:
sudo pip3.4 install scipy
https://www.pastiebin.com/5a7c65d7e44fe
I was able to get it to install with Python 3.6 but not 3.4.. which I need.
Installing Scipy or Numpy from scratch is usually hard work. At best try a distribution that already has it installed (WinPython, Anaconda). If you are on Linux install the packages that come with your distro. On Windows you can also grab the wheels at Gohlke.
I am trying to upgrade my scipy from version 0.13.3 to 0.17 (I need some new functions), I am working in Ubuntu 14.04
I have encountered the following problems:
the ubuntu repo does not contain the newest version but the one I have already installe.
Therefore, I have tried to install it using pip
sudo -H pip install --upgrade scipy
Collecting scipy
Using cached scipy-0.17.0.tar.gz
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy .../
But then the intallation procedure remains blocked here. I've looked here on the forum for solutions,
Can't upgrade Scipy
https://askubuntu.com/questions/359254/how-to-install-numpy-and-scipy-for-python
But the solutions reported here did not fix my problem.
I was trying to install ggplot using pip install ggplot. As it turned out, I was missing many essential packages, like stated in SciPy and blas and in SciPy with pip. After running
sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev I didn't get these "Cannot build wheel" errors anymore, luckily.
Now as I am trying just pip install scipy (which I need apparently) it fetches the package informations and gets stuck at Running setup.py install for scipy ... /. I can't imagine it takes this long time to install a 12 MB package (I waited for 30 minutes). Pip won't list it, so it's not isntalled. Does it really take so long? Or do I have another problem here, now? What am I missing?
I am running python3.4 on Ubuntu 14.04.
EDIT:
When trying pip install ggplot it gets stuck at the setup.py install for scipy too...
EDIT2:
It seems installing the package scipy for python3 did the trick. It is just completely unclear, why I need so many different packages from different sources to just get it to run. Anyhoo, scipy works and ggplot as well.
Scipy is compiling a lot of stuff. Depending on your computer it might take some time.
try:
pip -v install scipy
pip -vv install scipy
pip -vvv install scipy
(more and more verbose logging output)
I have tried installing scipy using pip install scipy. I have installed all the dependencies, gcc-fortran, lapack-devel, blas-devel but to no avail. I created my virtual environment with pyvenv-3.4. Anytime I try installing scipy it hangs after these two lines
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy
On one trial, I waited all night and it did not install. My OS is CentOS-7. Thanks for your help.
After getting some help, I tried easy_install scipy. Same problem it stops somewhere and just hangs. I have to depress Ctrl+C to escape. How do I finish installing or reinstall it? Thanks.
Edit:
I finally fixed it by following the instructions here: http://chrisstrelioff.ws/sandbox/2014/06/04/install_and_setup_python_and_packages_on_ubuntu_14_04.html
I would recommend to use Anaconda. It comes with many packages for scientists. SciPy works out of the box. Just install as user not root. It comes with conda which is an improved virtualenv.
If you don't want all packages of Anaconda use Miniconda
You can create a new environment and install scipy:
conda create -n my_project python=3.4
source activate my_project
conda install scipy
No compilation involved.