I'm working in windows and I'm using pycharm to code in and manage my sqqlite db. How to I check the sqllite version. I tried the standard terminal command as in the screen shot, but it does not run.
Haven't tried it on Windows but on Linux you can import the sqlite3 on the python console of PyCharm and then enter
sqlite3.sqlite_version
to get the version of SQLite library. I do not see the reason for not being the same on Windows as well.
To add on that you can do the same through the terminal by calling the Python IDLE Shell by typing python and then:
import sqlite3
sqlite3.sqlite_version
Related
I am trying to create a SQLite database, working within Jupyter Notebook.
However, when I run the command to create the database, I'm presented with the error 'No module named 'sqlite''. (See image for full command and response).
Checking the 'Environments' page of Anaconda Navigator, I can see that 'sqlite' is actually listed as an installed package.
What am I missing out?
I use sqlalchemy which takes away a lot of pain. You can install it like this in a Jupyter notebook cell (note the !)
!pip install sqlalchemy
Then your code would be as follows.
from sqlalchemy import create_engine
engine = create_engine('sqlite:///first_db.sqlite')
connection = engine.connect()
Is there a way to update/edit pycharm interpreters without the gui? IE editing some configuration file or something?
I am running pycharm community version 2018.2 in unix environment
The pycharm interpreter uses a defined python installation on the machine, either python or anaconda or something. I believe you can update the python via running it from it's installation location and piping or whatever you need from there.
I'm trying to connect my firebase auth to an expo project.
I'm following the main docs of each library. I'm stucking on this step.
I'm not able in windows to exeute this command line openssl rand -base64 32 | openssl sha1 -c.
I've tried with the specific https://code.google.com/archive/p/openssl-for-windows/downloads but I don't know how to reproduce the same line.
Any help would be great, thanks in advance.
You need to install openssl. It is usually available on Linux (which I think that article might have been written for). There are some Windows binaries available at here. Alternatively, you could setup a WSL session, and run the command from there.
that is a linux command. Therefore a linux terminal is needed.
there are at least 2 ways to get this done
using virtual machine with ubuntu or some other operating system that uses a linux terminal aka shell (which I doubt you know about)
OR
installing a linux emulator (windows 8+ since it's from the windows store)
assuming you would prefer option 2, go to the windows store, search "Kali" and you will find an app called Kali. install it and if an error shows up, here's a nice video here that talks about solving that error and you would have a kali terminal on your windows computer (your command would work there)
i am trying to install and run SQLite or SQL on my mac. I installed the application, but it's not giving me the option to run it. It says its not compatible with the developer. Thank you.
SQLite is already installed on the Mac. Go to Terminal create a directory e.g. sqlite by typing Mkdir sqlite, next type cd sqlite, now type sqlite3 mytest.db.
You should see something like: SQLite version 3.19.3 2017-06-27 16:48:08. The prompt will also change to sqlite>, type .help for a list of commands. I hope this helps.
I just downloaded the Sqlite3 command line shell for windows (http://www.sqlite.org/download.html). However when I try to run the executable in Cygwin it does not load and just hangs.
The Sqlite3 shell itself works as if I browse to it in Windows explorer it runs or if I open it in cmd it runs. How do I get it to work with Cygwin?
Cygwin currently doesn't work well with interactive native programs. It has to do with the way the Cygwin terminal code works, in order to provide expected POSIX semantics to Cygwin programs.
Therefore, your best bet is to use Cygwin's own SQLite package.
If you absolutely must use the native sqlite3.exe, you'll have use cmd.exe to run sqlite3.