Pip install-couldn't find a version that satis

2019-02-10 00:56发布

I am trying to install a package called got using pip. But it keeps showing up errors of 'couldn't find a version that satisfies the requirement".

error

I've searched online about the solutions. There are some explanation saying to try pip freeze > requirements.txt. But it still remains a blackbox to me.

What is the problem here and what should I do exactly to install the package?

Thanks!

3条回答
做自己的国王
2楼-- · 2019-02-10 01:14

Your package got is indeed not on Pypi.

Your error is thrown when no package have been found.

eg:

→ pip install notfoundpackage
Collecting notfoundpackage
  Could not find a version that satisfies the requirement notfoundpackage (from versions: )
No matching distribution found for notfoundpackage

Though, because you know the github link, you can clone the repository using git.

git clone git@github.com:Jefferson-Henrique/GetOldTweets-python.git
cd GetOldTweets-python
python Exporter.py -h

If you really need a python library for tweeter, some other library already exist, like twython.

查看更多
啃猪蹄的小仙女
3楼-- · 2019-02-10 01:18

This could be a proxy setting issue (it was in my case). Ensure that you have correct proxies set, if you are behind a firewall.

查看更多
再贱就再见
4楼-- · 2019-02-10 01:26

This package doesn't include a setup.py, so you can't install it from pip.

If it did, you could install it with: pip install git+https://github.com/Jefferson-Henrique/GetOldTweets-python.git

查看更多
登录 后发表回答