Pip Install Theano Error Code 255 - python

I am trying to install Theano on my Windows 10 system with Python 2.7.9, 64-bit through pip install theano. But I am getting a crash every time with this message:
Command "python setup.py egg_info" failed with error code 255 in
c:\users\sunny\appdata\local\temp\pip-build-lwmpfg\theano\
And then a window says python.exe has stopped working.
What is wrong with my system and how to install Theano on a Windows system? Please see Edit 2 too!
Edit: This is the complete terminal instance
C:\Users\sunny>pip install theano
Collecting theano
Using cached Theano-0.8.2.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\Theano.egg-info
writing requirements to pip-egg-info\Theano.egg-info\requires.txt
writing pip-egg-info\Theano.egg-info\PKG-INFO
writing top-level names to pip-egg-info\Theano.egg-info\top_level.txt
writing dependency_links to pip-egg-info\Theano.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\Theano.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\Theano.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: manifest_maker: MANIFEST.in, line 9: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
writing manifest file 'pip-egg-info\Theano.egg-info\SOURCES.txt'
----------------------------------------
Command "python setup.py egg_info" failed with error code 255 in c:\users\sunny\appdata\local\temp\pip-build-dwordf\theano\
C:\Users\sunny>
Edit 2: It seems like pip install command itself is problematic, since using it gives python.exe has stopped working irrespective of the package
C:\Users\sunny>pip install django
Requirement already satisfied (use --upgrade to upgrade): django in c:\users\sunny\appdata\local\enthought\canopy\user\lib\site-packages
C:\Users\sunny>

Related

`pip3 install psutil` Error - Repository Not Found

I am running the command pip3 install psutil, but running into the following error:
me$ pip3 install psutil
Collecting psutil
Using cached https://files.pythonhosted.org/packages/51/9e/0f8f5423ce28c9109807024f7bdde776ed0b1161de20b408875de7e030c3/psutil-5.4.6.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psutil.egg-info
writing pip-egg-info/psutil.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psutil.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psutil.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psutil.egg-info/SOURCES.txt'
error: [Errno 2] No such file or directory: '': ''
abort: no repository found in '/private/var/folders/n2/2rxj0k0d3bb73gbfstgcgzs40000gp/T/pip-install-y27z_s2w/psutil' (.hg not found)!
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/n2/2rxj0k0d3bb73gbfstgcgzs40000gp/T/pip-install-y27z_s2w/psutil/
I've tried everything and cannot find a solution - it works fine using pip install psutil.
This isn't the only package that this error is occurring on.
Any help would be appreciated!
Thanks!
Uninstalled both 2.7 and 3, and uninstalled mercurial then brew install-ed both python#2 and python#3.

error: package directory '<project_name>' does not exist

I have a simple Python package I've created. I copied the setup.py file from the Python docs, but when I run pip install . I get the following error:
~/Projects/wolfgang (master) $ pip install . Processing /Users/Cisplatin/Projects/wolfgang
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/wolfgang.egg-info
writing pip-egg-info/wolfgang.egg-info/PKG-INFO
writing top-level names to pip-egg-info/wolfgang.egg-info/top_level.txt
writing dependency_links to pip-egg-info/wolfgang.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/wolfgang.egg-info/SOURCES.txt'
error: package directory 'wolfgang' does not exist
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/k5/grp3jdnn5jvcd14ffvqyr9z00000gn/T/pip-pWAjtJ-build/
I've tried searching online and there seem to be some similar problems on GitHub or StackOverflow, but they all apply to something being broken in the project itself as opposed to the setup.py file. My program does not mess around with any command line arguments or anything like that, so I'm not sure why this is happening.
Here's a link to the actual setup.py file I'm using, if that helps.
There is no setup.py in your repository because you removed it.
There have to be a subdirectory wolfgang. Both __init__.py and vector.py must be in the subdirectory.

Installation of psycopg2 on Ubuntu 14.10

Complete newbie here, trying to set up Django to work with PostgreSQL.
I am using Ubuntu 14.10 and I have also installed PostgreSQL 9.5.
When I run pip install psycopg2 in terminal I get the following error:
Collecting psycopg2
Using cached psycopg2-2.6.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-la8dJp/psycopg2
I know that directory containing pg_config is /opt/PostgreSQL/9.5/bin/pg_config but I don't know how to add this directory to PATH to get my psycopg2 installed. Or any another method to get psycopg2 installed so that I can interact with my PostgreSQL.
Thanking you in advance.
Unless you do have a hard requirement on using the native postgresql library, I would advise you to use the pg8000 library instead because this one is pure python.
Since I discovered it years ago, I stopped using the other one and forgot about the having to compile it on so many platforms.

Getting Started with Python on Heroku - pg_config executable not found

I have been following the documentation until I got to the point of installing the requirements.txt file. It always fails when trying to install line 6 "psycopg2==2.5.3". Here is the message -
Downloading/unpacking psycopg2==2.5.3 (from -r requirements.txt (line 6))
Downloading psycopg2-2.5.3.tar.gz (690kB): 690kB downloaded
Running setup.py (path:/Users/pimpc/Sites/python/herokudemo/python-getting-started/venv/build/psycopg2/setup.py) egg_info for package psycopg2
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to
pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to
pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Of course I found several posts on this. So I started checking things. I believe that postgres app for mac comes with psycopg2. I do have postgres added to my path and checked in terminal running "echo $PATH". I do not have any other old versions conflicting. And postgres documentation says I should have it added to my path like this -
export PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH:$PATH"
I have restarted postgres app, deactivated and restarted virtual env and I get the same error no matter what.
What could I possibly be overlooking! I have read and read other posts on here, and even blogs covering this issue.
After reading dozens of the same errors people were all having with the postgres mac app. I decided to install postgres via brew and now it all works just fine.

Manually installing old version of selenium, missing folder error

I'm trying to install an old version of selemenium since the new version seems to have broken my stuff
C:\Users\Administrator>python C:\Python33\selenium-2.39.0\setup.py install
running install
running bdist_egg
running egg_info
writing top-level names to selenium.egg-info\top_level.txt
writing selenium.egg-info\PKG-INFO
writing dependency_links to selenium.egg-info\dependency_links.txt
warning: manifest_maker: standard file 'setup.py' not found
error: package directory 'py\selenium' does not exist
I get that error, and trust me, that folder does most definitely exist.
Make Selenium your working directory
cd C:\Python33\selenium-2.39.0
And then run python setup.py install

Categories