Python package: pywin32_postinstall returns error - python

I'm trying to run python script as a windows service and then I need to use pywin32.
After installation pywin32 via pip install I should run pywin32_postinstall as python pywin32_postinstall -install. I've got this reply and have no idea about this situation anymore:
'scripts/pywin32_postinstall.py' not found in metadata at c:\python\lib\site-packages\
As a result I can't run my service.
Did You meet similar situation or have You any ideas?

I solved my problem!
Don't install via pip
Just need to download suitable file from here: https://github.com/mhammond/pywin32/releases
After the installation run python pywin32_postinstall -install and no errors will not occur.

try running "python scripts\pywin32_postinstall.py -install" from the root of the install directory

Related

how i can i solve no module named can error?

hello i'm using python 3 and ros noetic, and i got this error
import can
ImportError: No module named can
I've got this error before, and I solved it through a very simple can-bus related installation command in google. But I can't find that command now
I've tried all the like $ sudo apt install python3-can.
but I can't fix it at all
thank you................
The problem is, that the module can't be found by your python.
first, try to remove the package with:
pip uninstall python-can
and re-install it with
pip install python-can
In case you have several versions of python installed (such as python2 and python3) make sure, you use
pip3
instead of pip.
Next you can try to manually search your package directories for the package, if it is even there.
Try cloning the library with git and running the setup.py installation, worked for me.

Python 3.x - Error while installing packages using pip

I've got a problem while I want to install couple packages for python 3.4.
The problem appears while I want to type pip. Any commands after word pip, easy_install are giving the same error. Installed get-pip.py before but the error still occurs:
C:\Users\Konrad>pip
Fatal error in launche: Job information querying failed
I'm running windows10 x64. The cmd was in admin mode.
Aby suggestions? I typed that error message through google, but there weren't any helpful answers.
Running python just works and launches Python 3.4.3.
That doesn't look like the Python pip command. You have a different pip executable in the way somewhere.
Use python -m pip as a work-around; it'll use Python to find the module and use it as a command-line tool (which is explicitly supported):
python -m pip install <something>

Python - ImportError: No module named 'requests'

I get this error when running code, so it appears that requests hasn't installed properly. I am running Windows 7 32-bit system with Python 3.3.
When I go into 'Programs and Features' in windows it shows up as installed.
I installed this program from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and I have also downloaded the requests folder and tried installing it this way, I can't seem to get this to work.
I have visited ImportError: No module named 'requests' already, but I didn't find this helped at all.
I keep seeing the following statement, but I am uncertain of how to run this?
$ python setup.py install
Please help!?!
The answer there is clear. But let me explain to you as good as I can. This error comes because requests module is not installed in your system
Download the requests module to your system from here
And extract it. Go to your command prompt/terminal and reach to the folder you downloaded.There, you will see setup.py, the file that you need to execute to install the requests module.
python setup.py install
Installs the requests module
This line:
$ python setup.py install
It's a command line in a terminal in Linux or the alike. My guess is that you could do the same opening a terminal in Windows pressing the start key and typing 'cmd', without quotes of course. If you had python already install the %PATH% variable should be set up properly and it should just run. Well, perhaps you need to go to the same folder as the setup.py using
> cd path_to_file
And then,
> python setup.py install
I hope it helps. Let me know otherwise.
If you are using Ubuntu, there is need to install requests
run this command:
pip install requests
if you face permission denied error, use sudo before command:
sudo pip install requests

Installing python packages in nitrousio

I've just started trying to use Nitrous.io. I've made a box with python, and am trying to use pip to install a python package called praw.
It downloads all of the information fine, but on running the install script, I get an error stating that it could not create a file due to permission restrictions in the /usr directory. Is there any way to get around this as I need the package for my application to work properly.
You could try pip install --user praw
https://pip.pypa.io/en/latest/user_guide.html#user-installs

How to see the log or results from PIP

Using python PIP (pypi) in Windows 7, how can I keep the pop up window open to see the results of the install (especially if there was an issue)? Or Is there a log that I can review?
Ex:
pip install selenium2Library
I figured an easy work around.. use this:
\Python27\python.exe \Python27\Scripts\pip-2.7-script.py install eyed3
This runs in the current cmd window, instead of a new one that auto closes when done.
This isn't the best solution, because I'm still looking for a proper answer, but what is currently working for me is instead of running pip from the command prompt I'm using cygwin instead. Exactly the same commands to use it: pip install module except that cygwin seems to catch the output of the program.
Find cygwin here: http://cygwin.com/install.html
This is happening for some of my coworkers, but not me.
We had downloaded a pip binary. We fixed it by uninstalling pip, running ez_setup, then running easy_install pip.

Categories

Resources