I downloaded the pyodbc module as a zip and installed it manually using the command python setup.py install. Although I can find the folder inside the Python directory which I pasted, while importing I am getting the error:
ImportError: No module named pyodbc
I am trying to use to this to connect with MS SQL Server. Help
As installation error showed, installing Visual C++ 9.0 solves problem because setup.py tries to compile some C++ libraries while installing plugin. I thing Cygwin C++ will also work due to contents of setup.py.
Related
I am trying to run a script which will trigger a python file. The python file is using win32com.client. From PyCharm everything is running fine. But when I run script it says no module called win32com. I have installed pypiwin32 and pywin32 already. I have tried out below solutions:
Upgraded pip to new version (21.2.3)
Tried with pip install of pypiwin32
Downloaded file from https://github.com/mhammond/pywin32/releases and I have 64bit(AMD64) on win32
Also tried https://github.com/mhammond/pywin32 and installing via python Scripts/pywin32_postinstall.py -install
Added import os;os.environ["PATH"]+=(';'+os.path.join(sitedir,"pywin32_system32")) in pywin32.pth under the folder--\PythonVersion\Lib\site-packages\
Added environmet variables by creating a PYTHONPATH environment variables, and append the win32 and win32/lib path
Tried with import sys
sys.path.append('\\PythonVersion\\lib\\site-packages\\win32')
sys.path.append('\\PythonVersion\\lib\\site-packages\\win32\\lib')
But still the issue is same and somehow I am not able to resolve. Can anyone please help with this?
im just trying to run a script to extract some data from a xml using XPATH, so i read i should use lxml or libxml2. The problem is i cant import any of this libraries in any case i get the message "ModuleNotFoundError: No module named" and the name of the module im trying to import.
I am running my script on a virtual environment with Python 2.7.13, i already execute the pip install instruction for both libraries, and i get that message that both of them are already installed.
Thanks for your help.
I have installed pymssql using pip however It is never found when I try to import into a project.
I get the error, No module found 'pymssql'
I have attempted to copy the .pyd file (pymssql-2.1.2-cp35-cp35m-win_amd64.pyd) to the project directory and this is still a problem
So. just using...
import pymssql
...results in the module not being found, If I try to reinstall through pip it states it is installed and requirement is already satisfied.
How can i get this useable
I am using Python 3.5 and Windows 10
Python is installed in Appdata/Local/Programs/Python35
Modules are installed Appdata/Roaming/Python35/site-packages/
Installing the .whl file manually from the Pymssql website resolved the issue and allowed me to use the module in my project!
My python script imports a shared library (.so) which was generated by distutils.core from a C++ code. When I generate an executable using pyintaller, it prints out
The CococaAgg backend required PyObjC to be installed!
during building, and running the executable failed with
ImportError: No module named sysconfig
I believed this is due to .so importing, and not sure how to fix it in pyinstaller.
Update:
I installed PyObjC. The
The CococaAgg backend required PyObjC to be installed!
disappeared during building, but the
ImportError: No module named sysconfig
failure was still there during execution.
I am running 64-bit Windows 7 and the Python 2.6 installation (64-bit version).
In addition I am using Aptana Studio 3 to run python.
I just downloaded and installed the pyodbc-3.0.2.win32-py2.6 package.
When I run python and try
import pyodbc
I receive the following error: 'ImportError: DLL load failed: The specified procedure could not be found.'
any idea how do I make it work?
I fix the problem by installing pyodbc-2.1.11.win32-py2.6 from here
Try the installer for the 64bit version of pyodbc:
http://code.google.com/p/pyodbc/downloads/detail?name=pyodbc-3.0.2.win-amd64-py2.6.exe&can=2&q=