Why is my pipenv configuration not working? - python

I'm struggling to install both pyenv-win and Pipenv on my Windows 11 machine.
I've been able to install pipenv onto my system. However, I keep getting this error
'pipenv' is not recognized as an internal or external command,
operable program or batch file.
I've attempted to follow the steps here but I've had no luck so far.
If anyone can help this would be appreciated... Path commands are below.
set Path=%Path%; 'C:\Users\<username>\.pyenv\pyenv-win\versions\3.10.3\Scripts'
set Path=%Path%;'C:\Users\<username>\.pyenv\pyenv-win\versions\3.10.3\Site-Packages'

Related

'pip' is not recognized after trying to upgrade it in pycharm

Pip was working fine. I used it through the terminal in pycharm to install various packages. Pycharm told me to upgrade pip using a pip command. After doing so an error was thrown out. And now I get the message "ModuleNotFoundError: No module named 'pip'" in pycharm and the message "'pip' is not recognized as an internal or external command,
operable program or batch file." in cmd. From what I have read it is because I used a different terminal and it wasn't located in the right place. The fix apprently, use get-pip.py. After trying this, it still doesn't work. I'm not very clued up on how this all works, any help is greatly appreciated!
Try adding pip to your path.
For Windows there is a simple step by step tutorial on YT:
https://www.youtube.com/watch?v=UTUlp6L2zkw
Or have a look here:
https://windowsreport.com/pip-not-recognized/

Espeak on anaconda windows 10

I wanted to run a piece of code which uses espeak. I have installed espeak using py-espeak-ng on my anaconda environment. But when I run the code it shows me the following error:
'espeak' is not recognized as an internal or external command, operable program or batch file.
So I looked for answers and found that the solution to this was:
Try adding the full path to your espeak installation
which I don't know how to do that. Can anyone explain me the procedure for this?

Python Locust 'locust' is not recognized as an internal or external command, operable program or batch file

I am using locust package which uses python. I am following this tutorial:
https://docs.locust.io/en/latest/quickstart.html#example-locustfile-py
But when i get to executing this code in command line;
locust locustfile.py
I get this error;
'locust' is not recognized as an internal or external command,
operable program or batch file.
I have succesfully installed locust using pip
Any help apperciated! (sorry for bad English it is not my first language)
This could be an issue with setting environment variable - Path for Python37/Scripts location
You may refer to this link with a similar issue:
Not able to install locust on windows
After installing locust using pip3 I appended C:/Python37/Scripts to the Path environment variable in windows. Restarted the terminal afterwards and it fixed my problem.

Installing PIP Modules

I am having trouble installing any PIP module.
Steps/Precautions I have taken:
I uninstalled Python and downloaded the most recent Python 3.6.2.
PIP seems to be installed already C:\Users\Danc2>C:\Users\Danc2\AppData\Local\Programs\Python\Python36-32\scripts\pip3.6 (also included are files: pip, pip3).
pip install pyperclip returns
'pip' is not recognized as an internal or external command, operable program or batch file.
In using many different forums and typing commands into CMD I come up with results like: "'pip' is not recognized as an internal or external command,
operable program or batch file."
When trying to refer to my folder location: "C:\Users\Danc2>C:\Users\Danc2>C:\Users\Danc2\AppData\Local\Programs\Python\Python36-32\scripts
Access is denied."
Sorry for the common question, but I just cannot figure it out for my individual problem. I appreciate any kind effort to help.
Daniel.
I think you should restart your computer. If that doesn't work, go to Control Panel -> System -> Advanced Settings -> Environment Variables.
In the system variables you should go to Path and add the folder containing the pip.exe to your path.
If your Python installation works at all with the command line, then replacing pip with python -m pip in the command line is likely to fix the issue for you.
Thanks for all the help, guys. Between your answers and another post, I figured it out.
Apparently, my installation location (and program files) for Python was preventing me from installing pyperclip. I bypassed this issue by running CMD as an administrator (see Stack Article .I will still reinstall elsewhere.
Cheers,
Daniel.

How do I install PySpeech for Python 3?

So far I've downloaded and installed distribute and pywin32, however I don't understand how to install PySpeech itself. The directions say to " browse to the folder that you extracted pyspeech-0.5.2.zip to and run the following in the command prompt:
'/python32/python speech.py install' or 'python speech.py install'".
I extracted pyspeech to the desktop and tried both of the above commands in the command prompt. This did not work as I got the following error: "'python' is not recognized as an internal or external command, operable program or batch file." Obviously I'm missing something. Can someone please tell me what I'm doing wrong and how to remedy the situation?
I suspect the issue lies in the "browse to the folder that you extracted..." portion of the directions, as I don't know how that ties into the process. Moreover, forgive my naivete because I've never installed something via command prompt.
You need to add python to your PATH environment variable. See here for instructions, and then you will need to run python.exe setup.py install or whatever (note the .exe).

Categories