I got this error when upgrading cvxpy using pip3. Does anybody know how to fix this? Thanks. The platform is OS X 10.11.2.
Collecting cvxpy
Using cached cvxpy-0.3.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): cvxopt>=1.1.6 in /usr/local/lib/python3.5/site-packages (from cvxpy)
Requirement already satisfied (use --upgrade to upgrade): ecos>=2 in /usr/local/lib/python3.5/site-packages (from cvxpy)
Requirement already satisfied (use --upgrade to upgrade): scs>=1.1.3 in /usr/local/lib/python3.5/site-packages (from cvxpy)
Collecting multiprocess (from cvxpy)
Using cached multiprocess-0.70.3.tgz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/94/v_wjnx7x62n8x7dfr_734zy80000gn/T/pip-build-bwub59jx/multiprocess/setup.py", line 66, in <module>
meta_fh = open(os.path.join(here, '%s/__init__.py' % libdir))
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/94/v_wjnx7x62n8x7dfr_734zy80000gn/T/pip-build-bwub59jx/multiprocess/py3.5/multiprocess/__init__.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/94/v_wjnx7x62n8x7dfr_734zy80000gn/T/pip-build-bwub59jx/multiprocess
Are you under Python 3.5?
If so it seems like the dependency to multiprocess has not been updated to python 3.5. However the installation scripts for 3.4 worked for me:
Go to https://pypi.python.org/pypi/multiprocess and download the 0.70.3.tgz file (bottom of the page)
tar -xvzf multiprocess-0.70.3.tgz
cd multiprocess-0.70.3 then mv py3.4 py3.5
python3 setup.py build
python3 setup.py install
pip3 install cvxpy
pip3 install nose
nosetests cvxpy should now work.
Related
I am not sure how to get this fixed. My pip version is 18.1:
Installing the parallel package from PyCharm:
Collecting parallel
Downloading https://files.pythonhosted.org/packages/31/5b/66966fb4d103191b7cbc92730db6a335986fbdb3d9f55cbb54b7ba87e9d4/parallel-0.2.5.tar.gz (57kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/scratch/tmp/pycharm-packaging/parallel/setup.py", line 5, in <module>
import pprocess
File "/scratch/tmp/pycharm-packaging/parallel/pprocess.py", line 255
raise AcknowledgementError, obj
^
SyntaxError: invalid syntax
----------------------------------------
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Command "python setup.py egg_info" failed with error code 1 in /scratch/tmp/pycharm-packaging/parallel/
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Installing the PyCharm package from terminal:
$ pip3 install --user parallel
Collecting parallel
Using cached https://files.pythonhosted.org/packages/31/5b/66966fb4d103191b7cbc92730db6a335986fbdb3d9f55cbb54b7ba87e9d4/parallel-0.2.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/scratch/tmp/pip-install-8emz1jxb/parallel/setup.py", line 5, in <module>
import pprocess
File "/scratch/tmp/pip-install-8emz1jxb/parallel/pprocess.py", line 255
raise AcknowledgementError, obj
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/scratch/tmp/pip-install-8emz1jxb/parallel/
[jalal#goku]$ pip3 install --user pandas
Requirement already satisfied: pandas in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (0.22.0)
Requirement already satisfied: python-dateutil>=2 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (2.6.1)
Requirement already satisfied: pytz>=2011k in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (2017.3)
Requirement already satisfied: numpy>=1.9.0 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from pandas) (1.15.2)
Requirement already satisfied: six>=1.5 in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (from python-dateutil>=2->pandas) (1.11.0)
$ pip install --upgrade pip
Requirement already up-to-date: pip in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (18.1)
$ pip3 install --upgrade pip
Requirement already up-to-date: pip in /scratch/sjn-p3/anaconda/anaconda3/lib/python3.6/site-packages (18.1)
$ which pip
/scratch/sjn-p3/anaconda/anaconda3/bin/pip
$ which pip3
/scratch/sjn-p3/anaconda/anaconda3/bin/pip3
I downloaded & opened the tar.gz file from that pypi cache url to make sure, and confirmed that what you were trying to do was to install a module that was both abandoned & didn't even passed status alpha since 2007, for Python 3. That will never work. I'd suggest not to install the author recommendation module as well given that it's also isn't maintained since 2016.
https://pypi.org/project/parallel/0.2.5%20(deprecated%20-%20see%20pprocess)/
You can use
"from joblib import Parallel,delayed".
just install joblib.
I am having difficulty installing Python Packages on Windows 10.The package name is Tabular..i have been trying over and over and it doesn't work out.her what i get when I try to install it using pip.Any help about it ?Thanks
C:\Python27\Scripts>pip install tabular
Collecting tabular
Using cached tabular-0.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "c:\users\pc\appdata\local\temp\pip-build-5mggv5\tabular\setup.py", line 50, in
raise ImportError("distribute was not found and fallback to setuptools was not allowed")
ImportError: distribute was not found and fallback to setuptools was not allowed
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\pc\appdata\local\temp\pip-build-5mggv5\tabular\
C:\Python27\Scripts>pip install distribute
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\python27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in c:\python27\lib\site-packages (from distribute)
C:\Python27\Scripts>pip install --upgrade distribute
Requirement already up-to-date: distribute in c:\python27\lib\site-packages
Collecting setuptools>=0.7 (from distribute)
Downloading setuptools-25.1.6-py2.py3-none-any.whl (442kB)
100% |################################| 450kB 191kB/s
Installing collected packages: setuptools
Found existing installation: setuptools 25.1.1
Uninstalling setuptools-25.1.1:
Successfully uninstalled setuptools-25.1.1
Successfully installed setuptools-25.1.6
Tabular 0.1 has issues with Windows 10. Please fall back to 0.0.8
pip install tabular==0.0.8
Edit
For scipy installation on Windows 10 with python 2.7, instructions are at https://stackoverflow.com/a/38618044/5334188
I am trying to install SPC at a Win 64-bit platform through Spyder Anaconda. After trying the solutions provided here, I run ez_setup but still getting the following error:
pip install spc
Collecting spc
Using cached spc-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\....\appdata\local\temp\pip-build-gfpds4\spc\setup.py", line 3, in <module>
from ez_setup import use_setuptools
ImportError: No module named ez_setup
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\...\appdata\local\temp\pip-build-gfpds4\spc\
try installing ez_setup from pip first:
pip install ez_setup
and then install spc:
pip install spc
I believe the authors forgot to add ez_setup as an installation requirement in the setup.py, like they did for numpy:
% sudo pip install ez_setup
Collecting ez-setup
Downloading ez_setup-0.9.tar.gz
Installing collected packages: ez-setup
Running setup.py install for ez-setup ... done
Successfully installed ez-setup-0.9
% sudo pip install spc
Collecting spc
Using cached spc-0.3.tar.gz
Requirement already satisfied (use --upgrade to upgrade): NumPy in /usr/local/lib/python2.7/dist-packages (from spc)
Installing collected packages: spc
Running setup.py install for spc ... done
Successfully installed spc-0.3
The code is like this
$ sudo pip install theano
Requirement already satisfied (use --upgrade to upgrade): theano in ./.local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /usr/lib/python2.7/dist-packages (from theano)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.11 in /usr/lib/python2.7/dist-packages (from theano)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in ./.local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from theano)
Cleaning up...
~$ python -c"import theano;theano.test()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named theano
I am sorry that I am still a freshman both in this site and linux.
That may due to the the two versions of python, so firstly I removed one and add the path for python to get the packages installed by pip, but it still does not help. Finally I came to to github to download it and unpackaged it, aftering test for around 30 minutes, it came out no errors, which means I setup it successfully.
After removing the previous version, I installed it as follows:
(http://deeplearning.net/software/theano/install_ubuntu.html)
git clone git://github.com/Theano/Theano.git
cd Theano
python setup.py develop --user
cd ..
Despite my best effors, I can't seem to get gevent or grequests working. They both rely on greenlet which I can't get working either.
I've completely installed and reinstalled python via homebrew. I haven't tried using python's installer but I don't see why that would matter. I have upgraded xcode to the latest version and installed literally every plugin. I regularly have success installing python modules via pip. I've been trying to install grequests for the last month.
Computer:
Mac OSX Yosemite Version 10.10.1
MacBook Pro (Retina, 15-inch, Late 2013)
2.3 GHz Intel Core i7
16 GB 1600 MHz DDR3
Intel Iris Pro 1536 MB
`
$ sudo pip install greenlet
Requirement already satisfied (use --upgrade to upgrade): greenlet in /usr/local/lib/python2.7/site-packages
Cleaning up...
$ sudo pip install gevent
Requirement already satisfied (use --upgrade to upgrade): gevent in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): greenlet in /usr/local/lib/python2.7/site-packages (from gevent)
Cleaning up...
$ sudo pip install grequests
Requirement already satisfied (use --upgrade to upgrade): grequests in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): gevent in /usr/local/lib/python2.7/site-packages (from grequests)
Requirement already satisfied (use --upgrade to upgrade): requests>=1.0.0 in /Library/Python/2.7/site-packages (from grequests)
Requirement already satisfied (use --upgrade to upgrade): greenlet in /usr/local/lib/python2.7/site-packages (from gevent->grequests)
Cleaning up...
'
>>> import grequests
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import grequests
ImportError: No module named grequests
>>> import greenlet
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import greenlet
ImportError: No module named greenlet
>>> import gevent
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import gevent
ImportError: No module named gevent
Edit:
$ which -a python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
/usr/bin/python
Edit 2:
I must have broken something at some point because now none of the modules I install are coming through. The modules I've installed in the past still work but the new ones are getting the same errors as above.
After reinstalling everything, I still had the problem. I thought that /Library/Frameworks/Python.framework/Versions/2.7/bin/python was the system installed version, but it's not.
I needed to delete that and remove it from ~/.bash_profile that and then everything worked fine. I don't know if that was my only problem as the reinstall could have fixed something, but I think it was.