I'm trying to install a Python package I downloaded from GitHub, but when I do so I get the following:
C:\WINDOWS\system32>pip install C:\Python27\GetOldTweets-python-
master.zip
Processing c:\python27\getoldtweets-python-master.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'c:\\users\\andres\\appdata\\local\\temp\\pip-req-build-cn4z5x\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\andres\appdata\local\temp\pip-req-build-cn4z5x\
I guess it's something about the zip file decompression creating temp files, but why is it not accessible to Python / does not exist?
Thank you very much in advance!
Related
I tried with:
pip install -i https://test.pypi.org/simple/ Keras==0.1.0
But I'm getting error:
Looking in indexes: https://test.pypi.org/simple/
Collecting Keras==0.1.0
Using cached https://test-files.pythonhosted.org/packages/c4/08/7f1c6bfaa86e69ccadadc552d6309f1685d779a93047d0a7c317b26a321e/Keras-0.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-O0DpNQ/Keras/setup.py", line 7, in <module>
long_description = open('README.md').read(),
IOError: [Errno 2] No such file or directory: 'README.md'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-O0DpNQ/Keras/
Edit the setup.py and remove the line:-
long_description = open('README.md').read(),
Hi I'm trying to install micropython-termios 0.0.0 but when I use pip it spits out the following (I used Admin CMD in WINDOWS 10)
C:\WINDOWS\system32>pip install micropython-termios
Collecting micropython-termios
Using cached https://files.pythonhosted.org/packages/fd/0e/3de9bc2c848adadcd3af4b7fd67d4c483acd87a76974a00f107a589cfcc0/micropython-termios-0.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\python36-32\lib\tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Michael\\AppData\\Local\\Temp\\pip-install-56w335sf\\micropython-termios\\setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Michael\AppData\Local\Temp\pip-install-56w335sf\micropython-termios\
How do I (1.) get rid of this message. (2.) Install micropython-termios
From https://pypi.org/project/micropython-termios/#description:
«This is a dummy implementation of a module for MicroPython standard library.» (Emphasized by me — phd).
The module is simply not for installation.
I just started learning Python using Django and I just seemed to be stuck at the same place for 3 days, every time I try to run the following command in my terminal using Pycharm (Yep, I am using a Mac) I get the below error:
Command: pip install mysqlclient
Error:
Collecting mysqlclient
Using cached mysqlclient-1.3.12.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-c7mudszc/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-c7mudszc/mysqlclient/setup_posix.py", line 44, in get_config
(venv) Mervins-MacBook-Pro:untitled mervinkobola$ pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-1.3.12.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-w_jamo3b/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-w_jamo3b/mysqlclient/setup_posix.py", line 44, in get_config
(venv) Mervins-MacBook-Pro:untitled mervinkobola$ pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-1.3.12.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-xefx4qk7/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-xefx4qk7/mysqlclient/setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "/private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-xefx4qk7/mysqlclient/setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3z/_xzmzzh90z9dj90cb70p3q0c0000gn/T/pip-build-xefx4qk7/mysqlclient/
Please help me understand whats going on and how I can solve it. Above all I can't seem to run the following :
python manage.py migrate (as I haven't installed mysqlclient)
Thank you in advance for your assistance.
Sometimes the variable mysql_config is set in the Terminal but not in PyCharm so this is why you're getting this error.
The solution is:
run the PyCharm from the terminal with this command:
/Applications/PyCharm\ CE.app/Contents/MacOS/pycharm
After that (in PyCharm) install the packages you need (probably they are in your requirements.txt, for example the mysqlclient),
Close the program and re-open
Now it should have all the packages installed properly
I am trying to install fandjango by using:
pip install fandjango
However I get the error:
Collecting fandjango
Using cached fandjango-4.2.1.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\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\setup.py", line 5, in <module>
execfile('fandjango/version.py')
NameError: name 'execfile' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\
Any help would be greatly appreciated
Fandjango only supports Python2 according to its Pypi entry, and you are using Python3 (Python3 does not have the execfile builtin function).
I'm trying to use https://github.com/Dimitri-Gnidash/django-js-utils
I've tried
ubuntu13:~/Documents/momsplanner/momsite/momsite/bin$ pip install git+https://github.com/Dimitri-Gnidash/django-js-utils.git Downloading/unpacking git+https://github.com/Dimitri-Gnidash/django-js-utils.git Cloning https://github.com/Dimitri-Gnidash/django-js-utils.git to /tmp/pip-ih5kUo-build Running setup.py egg_info for package from git+https://github.com/Dimitri-Gnidash/django-js-utils.git
Traceback (most recent call last):
File "<string>", line 16, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-ih5kUo-build/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-ih5kUo-build/setup.py'
---------------------------------------- Command python setup.py egg_info failed with error code 1 in /tmp/pip-ih5kUo-build
So this github library is not meant to be used this way?
It does not have a setup.py, I doubt it is gonna work, you will probably need to clone it and add to your path.
related: PIP install a Python Package without a setup.py file?