python, trouble installing with pip - python

I am trying to instal the python version of openGL on my mac. When I use the command given by the site pip install PyOpenGL PyOpenGL_accelerate I get:
Downloading/unpacking PyOpenGL
Downloading PyOpenGL-3.1.0a3.tar.gz (939kB): 939kB downloaded
Running setup.py egg_info for package PyOpenGL
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
Complete output from command python setup.py egg_info:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/var/folders/2m/chhqrrdn6698hyx3mt1gtcg00000gp/T/pip-build-lego90511/PyOpenGL
Storing complete log in /Users/lego90511/Library/Logs/pip.log
After some searching, most people tend to be missing some utility or another, but it is never the same thing. So what am I missing?

Related

Trying to run imagen-pytorch

I'm trying to run this "imagen-pytorch" repo https://github.com/lucidrains/imagen-pytorch/blob/main/README.md
I've cloned it and tried running the setup.py file on pycharm (CE) however I get the following error:
$ python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
There are no further instructions on the README.md file. Please can you explain where I am going wrong?
You have to run with some command.
The most popular are
python setup.py build
python setup.py install
You need them to install module.
You can see other commands using
python setup.py --help-commands
Maybe they forgot to show this information because other modules on GitHub already show it ;)

unable to install pywebview

I try to install pywebview but it just gives me a long error: ERROR: Command errored out with exit status 1:
in general, I'm trying to find a way to wrap a website in a GUI but that I can modify the screen size and cut areas of the webpage(hiding the search bar for example)
update :
using pip install
windows 10 env,
error message -
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized

How to fix usage: setup.py [global_opts] cmd1 [cmd1_opts] issue?

When I try to run setup.py give this error.
C:\chatbot\python-telegram-bot\python-telegram-bot>python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
C:\chatbot\python-telegram-bot\python-telegram-bot>
How to Fix this issue ?

Why can't I install Scikit-image in Python?

When I try to install Scikit-image in Python on easy_install, it looks like this.
Then, when I try to install with setup.py, it shows this.
Running: C:/Users/Ricardo/Desktop/scikit-image-master/setup.py (Mon Feb 23 16:57:04 2015)
C:\Python27\lib\site-packages\setuptools-12.2-py2.7.egg\setuptools\dist.py:282: UserWarning: Normalizing '0.11dev' to '0.11.dev0'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
I use
Windows 8.1
Python 2.7
Ninja IDE
Numpy at least 1.6
Cython at least 0.21
Six at least 1.3
SciPy
Matplotlib
NetworkX
PIL

Unable to install MySQL-python " invalid command 'egg_info' "

I'm getting a weird error after running
$ pip install mysql-python
Has anyone seen an error like this with "egg_info" being invalid?
I'm running OSX mountain lion
Downloading/unpacking MySQL-python
Using download cache from /Users/Marcus/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMySQL-python%2FMySQL-python-1.2.4.zip
Running setup.py egg_info for package MySQL-python
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /var/folders/ss/nxvs3w690xqbpvr_l0v31mrw0000gn/T/tmpg_MvY6
Now working in /var/folders/ss/nxvs3w690xqbpvr_l0v31mrw0000gn/T/tmpg_MvY6/distribute-0.6.28
Building a Distribute egg in /Users/Marcus/sites/venv/build/MySQL-python
/Users/Marcus/sites/venv/build/MySQL-python/distribute-0.6.28-py2.7.egg
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /var/folders/ss/nxvs3w690xqbpvr_l0v31mrw0000gn/T/tmpg_MvY6
Now working in /var/folders/ss/nxvs3w690xqbpvr_l0v31mrw0000gn/T/tmpg_MvY6/distribute-0.6.28
Building a Distribute egg in /Users/Marcus/sites/venv/build/MySQL-python
/Users/Marcus/sites/venv/build/MySQL-python/distribute-0.6.28-py2.7.egg
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/Marcus/sites/venv/build/MySQL-python
Storing complete log in /Users/Marcus/.pip/pip.log
Thanks
--- I'm getting this same error when I run
$ pip install django
You need distribute package which is now inside setuptools:
pip install --upgrade setuptools

Categories