Answer the question
In order to leave comments, you need to log in
How to install a module in python 3?
Good afternoon.
I have a few problems with modules in python.
I have Windows XP, Python 3.4.
There is a patool module, I wanted to install it locally - I go into the folder with the downloaded module, find setup.py, write through the command line: setup.py install --home f:/python34/
Then the lines run, something is compiled, installed, assembled, etc., there seem to be no errors.
I try to import the installed, writes the module is not found.
I'm trying to install this module through pip, but at work the Internet is through a proxy. Then I set up the cntlm program, specify pip through which proxy to climb:
pip --proxy <<здесь пишу прокси, который слушает cntlm>> install patool
Answer the question
In order to leave comments, you need to log in
If you need exactly the patoolib module for your script, then just download the patool-1.9.tar.gz archive.
Then open it with an archiver (7zip does a great job)
Get the patoolib directory and place it in the directory where you run your script from.
Use the pip utility. She is quite able to "leak" through a proxy, even with authentication. Or, just checked - Pycharm downloaded and installed it (your patool) without any problems.
PS What is your proxy?
Tip: Get out of the habit of putting modules in a common heap. Instead, use virtual environments. virtualenv, or the venv module from the standard library.
Do this:
1. create a folder {your-project-name}
2. cd {your-project-name}
3. Run cmd.exe
4. In an open console run "c:\python34\python.exe -m venv pyenv"
5. Remaining in the console, execute "pyenv\scripts\activate.bat"
6. Unpack the archive of your patool
7. Going into the archive folder, execute 'python setup.py install' You
may need to run the cmd.exe console as an administrator. There is a small chance that this will need to be done.
>I'm trying to import the installed
How are you trying? Example code and file location
How familiar. I also use cntlm, but I put fiddler in front of it and send all requests through fiddler. It is very clearly visible that it is walking through proxy cntlm.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question