I'm using Python 2.7 on Windows.
My question relates to using and updating the twitter package (http://mike.verdone.ca/twitter/) - currently installed version 1.9.1
When Twitter gives a ratelimited response the twitter package gives an error httplib.IncompletedRead. This problem seems to have been addressed in the version of api.py on Github. But the downloaded egg file I have on my system doesn't have that latest version in.
When I try
easy_install --upgrade twitter
I get response:
Processing twitter-1.9.1-py2.7.egg
twitter 1.9.1 is already the active version in easy-install.pth
So how do I get an egg file onto my system that includes the latest api.py, so that I don't get the IncompleteRead error?
Thanks for any help
You can install directly from GitHub with pip, but you perhaps have to force the upgrade:
pip install -U --force-reinstall git+git://github.com/sixohsix/twitter.git#egg=twitter
This does require that you have git itself installed as well.
Alternatively, you can install from the GitHub supplied archives:
pip install -U --force-reinstall https://github.com/sixohsix/twitter/zipball/master#egg=twitter
or
pip install -U --force-reinstall https://github.com/sixohsix/twitter/tarball/master#egg=twitter
Related
I have 3.9 python and I want to download chatterbot library so I did 'pip install chatterbot' but I'm having this error. how can i fix it?
enter image description here
This error could be caused by several issues, if you don't need the newest version, the easiest thing to do is to install an older version. (Uninstall the previous version before downgrading)
pip install chatterbot==1.0.4
If this isn't possible you could try reinstalling pip using,
python -m pip install --upgrade --force-reinstall pip
I've been trying to install the gym library via pip install gym
I get the following error
WARNING: Discarding https://files.pythonhosted.org/packages/87/86/3f5467531428b6ce6f3c12d3121b4304d2ea1536a50775a4df036add37b8/gym-0.23.1.tar.gz#sha256=d0f9b9da34edbdace421c9442fc9205d03b8d15d0fb451053c766cde706d40e0 (from https://pypi.org/simple/gym/) (requires-python:>=3.7). Requested gym==0.23.1 from https://files.pythonhosted.org/packages/87/86/3f5467531428b6ce6f3c12d3121b4304d2ea1536a50775a4df036add37b8/gym-0.23.1.tar.gz#sha256=d0f9b9da34edbdace421c9442fc9205d03b8d15d0fb451053c766cde706d40e0 has inconsistent version: filename has '0.23.1', but metadata has '0.23.1'
ERROR: Could not find a version that satisfies the requirement gym==0.23.1
ERROR: No matching distribution found for gym==0.23.1
pip then defaults to trying to install previous versions 0.23.0, 0.22.0 and so on.
I get the following warning for all versions and none installs.
request gym from <link> has inconsistent version: filename has '0.9.0', but metadata has '0.9.0'
After some Googling for similar errors, I tried updating pip python3 -m pip install --upgrade pip setuptools wheel
but I get the same problem with version mismatch, and it tries to install old versions of pip and fails.
I'm on Python 3.10.4 and pip 21.0 under Arch Linux.
edit: The same problem happens to any package I try to install with pip.
I found a solution here.
The problem seems to be caused by the python-pip package under Arch Linux.
One possible way to fix it:
sudo pacman -Rncs python-pip
python -m ensurepip
If you cannot figure out pip use git
git clone https://github.com/openai/gym
cd gym
pip install -e .
Try to install with an upgrade option to install the latest without cache since looks that the latest version is stable:
pip install gym -U --no-cache-dir
-U, --upgrade Upgrade all packages to the newest available version
--no-cache-dir Disable the cache
If this won't help you can try to install using legacy version resolver (as per https://github.com/pypa/pip/issues/9203):
pip install gym -U --no-cache-dir --use-deprecated=legacy-resolver
I'm trying to install the google-cloud-speech python API for raspberry pi 3 (raspbian Jessie) using pip (1.5.6). I follow the instructions given by:
https://cloud.google.com/speech-to-text/docs/reference/libraries?authuser=1#client-libraries-install-python
but when installing the library using pip:
pip install --upgrade google-cloud-speech
I get this error:
error in grpcio setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
and the installation doesn't finish. The same job worked for me some months ago, so I guess some changes was made. Any ideas?
I've already tried upgrading pip
Start with upgrading installation tools:
pip install --upgrade setuptools pip
Upgrade your setup tools/ pip
pip install setuptools -U
Thank you all! now it is working. I'm pretty sure I tried before one of:
pip install --upgrade setuptools pip
pip install setuptools -U
But the thing is that executing both of them the installation finished correctly.
I am installing pyodbc using pip but system reply could not found a version.
I believe pyodbc still exist from pypi.python.org.
Please see the pic I attached for error.
I have pip 9.0.1 version and python 3.5 installed
Also, with the help menu, I don't see --allow-external and --allow-unverified available.
Try installing it from URL directly:
pip install https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pyodbc/pyodbc-3.0.7.zip
Latest version: https://pypi.python.org/pypi/pyodbc/4.0.15
Download the .whl file install using pip
I have been trying to install facebook-sdk for python to fetch data from few fb pages.
I have tried following commands as i saw in Python Facebook SDK: 'module' object has no attribute 'GraphAPI'
__sudo pip uninstall facebook
sudo pip uninstall facebook-sdk
sudo pip install facebook-sdk__
But i am getting following in my terminal
_User#user:~$ __sudo pip install facebook-sdk__
Downloading/unpacking facebook-sdk
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement facebook-sdk
Cleaning up...
No distributions at all found for facebook-sdk
Storing debug log for failure in /home/user/.pip/pip.log_
What version of pip do you have?
This error I remember:
Cannot fetch index base URL https://pypi.python.org/simple/
As far as I can remember I think i found the issue with some older versions of OpenSSL being incompatible with pip 1.3.1:
Installing pip-1.2.1 is a working workaround, but let me know!