15

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 ...
Community
  • 1
  • 1
Rocketq
  • 5,423
  • 23
  • 75
  • 126

5 Answers5

25

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

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895
  • 1
    Because I dont have such lib installed. `import sqlite` - doesn't work – Rocketq Feb 24 '16 at 15:13
  • 4
    The stdlib module is called sqlite3. See [the documentation](https://docs.python.org/3/library/sqlite3.html). – Daniel Roseman Feb 24 '16 at 15:14
  • Because the package `sqlite3` (in the standard library) has problems. Try compiling a sqlite3 python program with cx_Freeze, and you'll get a DLL not found error. – clabe45 Mar 23 '18 at 23:47
  • Old one but gold one :), I was astonished why it is working if it is not installed – A l w a y s S u n n y Aug 17 '20 at 17:52
  • 1
    after stubbornly trying to download SQLITE3 from pip for several minutes, i remembered that python is batteries included. – object Object Apr 24 '21 at 19:09
  • What's the solution for this? On Windows I see the folder for the sqlite in the python install directory and I updated the path environment variable to include this path, but in VS code, it's still complaining that the command is not found. – ptn77 Apr 04 '22 at 15:29
2

Another simple solution would be

pip install pysqlite

Harshit Garg
  • 2,137
  • 21
  • 23
1

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

Chandramani
  • 343
  • 1
  • 2
  • 9
  • I'm new to python, django..I'm working on Python-Django project, I have been facing the same error even after installing sqlite-devel I'm getting this error "ModuleNotFoundError: No module named '_sqlite3' " – Ashwin Sep 20 '18 at 14:39
0

I tried to install that library by pip in console. I'm using windows12 and python version. 3.10.11. But it 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 ...

I used "pip install pysqlite"** and it worked(it works succesfully❤️

-1

I used "pip install pysqlite" and it worked