Python: sqlite no matching distribution found for

2019-04-12 12:31发布

I tried to install that library by pip in console. I'm using win7 and python v. 2.7.10. But failed to achive. Acording to this - It can be used for my version of python too.

I tried to install by several ways:

pip install sqlite

pip install sqlite3

pip install sqlite-devel

What is wrong here?

    Full error: Could not find a version that satisfies the requirement(). 
No matching distribution found for ...

3条回答
Fickle 薄情
2楼-- · 2019-04-12 13:16

What makes you think you need to install this? sqlite is part of the standard library, and does not need installing.

查看更多
再贱就再见
3楼-- · 2019-04-12 13:28

I had similar issue in RHEL7.4 it worked with below solution

If you compiled and installed Python 3 yourself, install the dependencies (libsqlite3-dev or sqlite-devel or similar, depending on your Linux distribution, for example), then re-compile and re-install Python 3.

after installing the sqlite-devel I have reinstall Python3.6 on my machine using below steps

  1. download wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
  2. tar xvf Python-3.6.3.tar.xz
  3. cd Python-3.6.3 and then run ./configure
  4. make
  5. make install

after doing this when I launch jupyter notebook it got launch

Credit goes for this answer to Martijn Link https://stackoverflow.com/a/41440858/5863866

查看更多
叛逆
4楼-- · 2019-04-12 13:28

Another simple solution would be

pip install pysqlite

查看更多
登录 后发表回答