Kamil Banaszczyk
Kamil Banaszczyk

Reputation: 1153

pip install pyodbc does not install packages only dist info file and vsc does not autocomplete pyodbc code

I'm using visual studio code version 1.55.2, virtual environment pip version 21.0.1 and python version 3.8.9. When i do pip install pyodbc in my .venv/lib/python3.8/site-packages folder there is only pyodbc-4.0.30.dist-info folder. For other packages i have two for example I have azure_functions-1.7.0.dist-info and azure/functions folder with all packages.

I think because of that vsc does not resolve and autocompletes code from pyodbc library, and I can't go and view sources of pyodbc.

I've found other posts about pip installing only dist info, but in my case it's only for pyodbc. Additionally when i uninstall and install pyodbc it says: Using cached pyodbc-4.0.30-cp38-cp38-macosx_10_9_x86_64.whl (64 kB)

Upvotes: 1

Views: 477

Answers (1)

phd
phd

Reputation: 94453

If you download the wheel and unzip it you can find the main module is pyodbc.cpython-38-darwin.so. That's, it's a pure-C Python module. Import is the same, still: import pyodbc.

Upvotes: 1

Related Questions