I had recently updated my python version from 3.8.1 to 3.8.2. I had hoped this would also update my sqlite3 from 3.28 to 3.31.1 but to my surprise, it didn't. I was able to make it so that whenever I'd check the version through sqlite3 --version, it'd show up as 3.31.1. But when I check the version through python's interactive, it still shows 3.28. Any solutions?
For system purposes, I'm using macOS Catalina (10.15.4)
Related
I was using Big Sur with Python 3.8.2 (not Homebrew's, but native OS' Python) and I had a lot of packages installed (around 60). Now I updated my OS to Monterey 12.6 and I updated Xcode to 14.0 which updated Python to 3.9.6. And I had a very nasty surprise - all of my packages are gone. There is not a single package I installed when I was using Python 3.8.2. I sure hope it didn't delete them for good. I found some of them in ~/Library/Python/3.8 but not all. If I knew this would happen, I would use pip freeze. How can I fix this?
To answer my own question. For some reason update of Xcode decides to update Python also. So beware when you are updating it, you packages are still there, but for older version which will become unavailable.
In my case, after update Xcode my project on Python do not connecting to mysql database with error MySQLdb.OperationalError: (2002, "Can't connect to server on 'xxx.xxx.xxx.xxx' (60)"). In this time Dbeaver still connecting and work perfect
I have installed python 3.5.3 installed on my Windows machine. I check the SQLite version via the command sqlite3.sqlite_version. It is version 3.8.11.
My question is how can I update the SQLite version to 3.26? I wasn't sure if there was a 3rd party library or if I need to update sqlite3 library.
Thanks.
Just update the sqlite in the system by a newer version. Python will use it. It is not 3rd party. It is included in Python. I am not completely sure but I think it is a dynamically loaded library installed with Python but that you can upgrade by yourself. At least in my system different Python versions report the same sqlite3 version.
I'm using pycharm for the current project.
When using the sqlite console under pycharm it shows that it has the version 3.25.1, which means that the sqlite upsert works perfectly. But on python, when I do import sqlite3 it imports the version 3.20.1 of it.
I don't know why that difference in versions and I want to import the latest version of sqlite in python to be able to work with upserts.
Edit: I'm using Fedora 27 and python 3.7.0
You can choose the version of packages when selecting in pycharm Settings > Project Interepter > and upgrade the packages you want, here's a link to an old question, however, there are some recent answers, hope it what you want Link to an old question
It seems that sqlite 3.24+ requires Fedora 29+.
I just upgraded my fedora to version 29 and I got sqlite 3.24.0
I'm badly confused. I have very little problem with the Python language, but setting up Python seems to be beyond me.
I have a Windows 7 machine. I have installed the 64-bit version of Python 3.6 (more about why 64 bits later). I need the pyodbc module. I also have the 32-bit version of Python 3.5, and pyodbc is installed in its site-packages folder. The first time I tried to get pyodbc for 3.6, pip told me the requirement was already fulfilled by the version in 3.5. Then, I found the --ignore-installed option and successfully (?) installed it in my 3.6 folder.
When I open my project in PyCharm and select my 64-bit Python 3.6 as the interpreter, PyCharm shows me the pyodbc package. But when I open the file in which pyodbc is imported, PyCharm highlights the import line and tells me it can't find pyodbc. Just in case PyCharm was confused, I tried running my program from a command window, and got the same error.
Do I have to set an environment variable? I didn't have one set when I used pyodbc in a project using Python 3.5, and I had no problem.
I am trying to use 64-bit Python because a customer requires us to write into their Oracle database. They installed an ODBC driver for us, into their standard DSN list. But since we installed a 32-bit version of Python on their system, the only DSNs it can see are those installed in the 32-bit list of DSNs. If there is some easy way to use the 64-bit Oracle ODBC driver from 32-bit Python, I'd appreciate learning about it.
Thanks again.
I have a script that has to use Python 3.5.1 which I have installed. It also needs to use sqlite3 version 3.8.2 or higher. However, the module that seems to be installed has the version 3.7.13.
Could anybody please tell me how do I make it such that my script when run with python 3.5.1 will run such an sqlite3 version?
If it is of any importance I am using Raspbian.