I am trying to use pip to install the python docx plugin. However, when I use the line "pip install python-docx" on the windows command prompt, it just stays there, not doing anything. It doesn't crash, nor does it throw an error.
I have modified the PATH so it includes pip, so I don't think that's the problem.
In the end, what happened is that my antivirus was somehow interfering with the installing process. I turned it off for a few minutes, ran the windows command prompt as administrator, and it worked perfectly.
Related
i am completely ignorant with the prompt command, i don't know anything so be crystal clear when explaining step by step, thanks.
I have installed Python 3.10.4, if i digit python in the command prompt it works.
Then i installed pip using python get-pip.py and it told me it was successfully installed.
I went on ipython website and i downloaded the ipython file. At this point i went on the command prompt and i wrote "pip install ipython" and it installed it.
Now if i write "ipython" in the command prompt it says "ipython is not recognized as an internal or external command". If i try to install it again it says everything is already installed.
Help me i don't know what to do.
Python beginner here. I would like to use Spyder as my Python IDE. Alas the standalone version does not include pip and I want to work with "Vanilla Python" rather than Anaconda. So I installed Spyder via
pip install spyder, which works fine. However, when running spyder3 in the command window, nothing happens. I get no error, but Spyder does not launch either. While the Spyder website says custom installation may be tricky, it does not provide a guide on how to get it done. Does someone know how? OS is Windows 10.
you need to follow this commands:
python -m venv spyder-env
spyder-env/Scripts/activate.bat
pip install spyder
more info
Update: Tried again with Python 3.10.4. "spyder" now exists in the Scripts folder and does launch when typing spyder in cmd. Works for me now.
I have added the below lines in the path variable on my Windows 7 machine:
C:\Users\sample\AppData\Local\Programs\Python\Python36-32;
C:\Users\sample\AppData\Local\Programs\Python\Python36-32\Lib\site-packages;
C:\Users\sample\AppData\Local\Programs\Python\Python36-32\Scripts
But still it shows
pip is not recognized as an internal or external command
Thanks,
Dhinesh
I ran into an issue with an installation where only running the pip module as a python script in command line worked. pip install [pkg] would fail but the following worked.
python -m pip install [pkg]
Uninstall Python completely.
Reinstall using the "executable installer".
Tick the box to add Python to your path variable.
Restart computer (just in case).
Don't do anything else manually.
Run pip.
If you still have issues after trying Exprator's solution, try adding PIP to Path variable
I had the same problem so I tried using - py -m pip install [pkg]
and it worked
I'm having trouble getting python to work on my Windows 10 computer. I downloaded 3.5.2 off the website and ran the exe, but when I try to use
pip install nltk
So I copied and ran get-pip.py, but it still tells me "pip" is not recognized as an internal or external command, operable program or batch file.
python -m pip install pip
tells me that python is also not recognized. What should I do?
EDIT: Have tried reinstalling python, made sure the box to install pip was checked. Tried re-running the pip command in the Python command line (the one titled Python 3.5 (32-bit)) and it gave me an invalid syntax error on the word install.
When installing "the exe", make sure that you tick the checkbox labelled "Add Python 3.5 to PATH". That will solve the issue you mentionned.
I am having trouble with PIP right now. When I installed python, I check the box to install pip together. Python itself works fine, but PIP does not work. Whenever I type pip in command line on Windows (no matter 8.1 or 10, I just fallback and re-upgrade my laptop), it will do nothing but keep freezing at this point and even ctrl-C is not working.
What should I do to solve this problem? I've tired to resintall python on 2.7.9, 2.7.10, 3.4.3, 3.5, they all have same problem, it seems not the python but some dll is missing(I guess).
What it looks like when freezing
What it looks like when calling with -v and install package('Django')
Try python -m pip install Django. I had the same problem with pip today and it worked for me.
Check out the log file created by the pip whenever you invoke the pip command. The log file is situated generally at
C:\Users\user_name\pip
The notepad file will be created and you can verify what is missing