I am trying to install pyodbc on my work machine which has a firewall. So I donwnloaded pyodbc-3.0.7.zip, and tried to install it manually with the following command:
pip install C:\Users\AppData\Local\Continuum\Anaconda\pkgs\pyodbc-3.0.7.zip
But it did not work. From searching around, if I want to continue on in this path, it looks like I need to compile the c++ source.
Is this the only way to go if I want to install pyodbc manually?
Select the appropriate exe for your CPU architecture from here. Once the executable is downloaded, an active network connection isn't needed.
Related
I'm trying to connect my python Backend with Ikeas's Tradfri to control it from my own app.
I found that for this communication I need DTLSSocket and libcoap, but according to this repo here (https://github.com/ggravlingen/pytradfri/issues/97) there are some major problems installing these libs on windows.
I tried it myself and it's still not working. Installing DTLSSocket on Windows results in:
ERROR: Failed building wheel for DTLSSocket
Of course I could use a VM or the WSL service to build a linux environment, but that's actually not what I want.
Is anyone of you aware of another solution how to connect to the tradfri gateway or knows how to install the required libs on Windows?
Thanks!
pip install conda
Then try again.
I am trying to set up an Websphere MQ Client and PYMQI on python to send/receive messages via Queue.
Environment variables have been automatically set too.
I had installed IBM MQ CLient V8.0.11 and there were not issues during.
Then, I proceeded to install (pip install pymqi) which also seemed to be file.
import pymqi
qmgr = pymqi.connect('QM.1', 'SVRCONN.CHANNEL.1', '192.168.1.121(1434)')
putq = pymqi.Queue(qmgr, 'TESTQ.1')
putq.put('Hello from Python!')
When i try to run this using Pycharm, I get the following error
Due to the prompt, I am guessing that your client is running on windows. Before you install the pymqi library you need to need to add the MQ Client directory containing the exe's, cmd's and the dll's to the PATH. You can do this easily by running setmqenv -s.
If you attempt to install pymqi before adding the dll (lib64) directory to the PATH, then you will need to reinstall it, but make sure you use the --no-cache-dir option to force a re-install. Without --no-cache-dir the pip install will only fetch the bad object files created in your initial attempt.
I found this script (tutorial) on GitHub (https://github.com/amyoshino/Dash_Tutorial_Series/blob/master/ex4.py) and I am trying to run in my local machine.
Unfortunately I am having and Error
I would really appreciate if anyone can help me to run this script.
Perhaps this is something easy but I am new in coding.
Thank you!
You probably just need to pip install the dash-core-components library!
Take a look at the Dash Installation documentation. It currently recommends running these commands:
pip install dash==0.38.0 # The core dash backend
pip install dash-html-components==0.13.5 # HTML components
pip install dash-core-components==0.43.1 # Supercharged components
pip install dash-table==3.5.0 # Interactive DataTable component (new!)
pip install dash-daq==0.1.0 # DAQ components (newly open-sourced!)
For more info on using pip to install Python packages, see: Installing Packages.
If you have run those commands, and Flask still throws that error, you may be having a path/environment issue, and should provide more info in your question about your Python setup.
Also, just to give you a sense of how to interpret this error message:
It's often easiest to start at the bottom and work your way up.
Here, the bottommost message is a FileNotFound error.
The program is looking for the file in your Python37/lib/site-packages folder. That tells you it's looking for a Python package. That is the directory to which Python packages get installed when you use a tool like pip.
I would like to write and run a Mesos framework with Python, so I need mesos.native module.
On Ubuntu:
I can build mesos from source code. I tried to easy_install all the generated egg files but none of them made it possible for Python to import mesos.native.
I also tried to download the egg from http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.20.1-py2.7-linux-x86_64.egg and easy_install it, which didn't work as well.
On Max OS:
Got some problem building the mesos source code because of the issue. So I am wondering whether there is an easy way to install the Python module without building the source code.
BTW, why don't they make the mesos.native pip-installable like mesos.interface?
Problem solved: https://github.com/RobinDong/mesos-python-examples/blob/master/calculate_pi/pi_run
I just need to set PYTHONPATH as that in the file and run python. Mesos.native can be successfully loaded.
I have Django project which uses postgresql 9. I installed psycopg2 and when I run project I receive 'Error loading psycopg2 module: dll load failed'. I met this issue for the first time. I have windows 7 x64 with python2.7. How can I solve this one?
I had the same problem, it was that psycopg2 does not install well in Windows with _easy_install_, I followed the instructions on the follow SO answer:
Installing psycopg2 (postgresql) in virtualenv on windows
You need to manually install the psycopg2 exe file:
psycopg2-2.4.2.win-amd64-py2.7-pg9.0.4-release.exe
I know this is going to haunt me again or as nwcell puts it:
Every time I need to set up psycopg2 on windows, I wind up wanting to shoot something.
I actually have a machine with it working and I've been at pains to setup another machine. I installed Python 3.8 and the old PC has 3.7.4. The main difference was the file:
C:\project\venv\Lib\site-packages\psycopg2_psycopg.cp37-win32.pyd
On the new PC it was showing as AMD64. I eventually uninstalled 3.8 and reverted back to 3.7.4, then I copied the files from the old PC to the new and then I hit this error:
https://stackoverflow.com/a/37819509/495455
Going to a WayBackMachine version of the stickpeople:
https://web.archive.org/web/20191003103502/http://www.stickpeople.com/projects/python/win-psycopg/
I didn't install the exe, I simply did a pip install -Iv psycopg2-binary==2.8.4 at which point it started working. So I'm thinking the latest version doesn't work, for me 2.8.4 still works: https://pypi.org/project/psycopg2/#files
It's something to do with x64 as everything I tried with AMD64 didn't work and I spent ages on it.