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).
Related
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/
I am on a windows machine, and I am attempting to set up plaidml after installing using the "plaidml-setup" command, but it does not work. I keep getting the "'plaidml-setup' is not recognized as an internal or external command, operable program or batch file." error. I have already installed plaidml using the "pip install -U plaidml-keras" command, and have tried uninstalling and reinstalling it.
I've searched online to solve the issue but cannot find why the command will not work and allow me to chose my AMD gpu. The only information I was able to find were people repeating the "pip install -U plaidml-keras" and "plaidml-setup" commands.
The console doesn't recognize the command, because you are trying to call a program which does not exist in the location you are in. You are either in the wrong location (go to the correct one by typing cd [path]) or call the program with the correct name.
Assuming you computer is configured like mine, you want to navigate to C:\Python38\Lib\site-packages\plaidml
and run ./plaidml_setup.py or perhaps using python plaidml_setup.py if the former doesn't work for you
source: see this response to a similar ticket
I was installing a pylint version for Django and the tutorial states:
Ensure pylint-django is installed and on your path and then execute:
pylint --load-plugins pylint_django [..other options..]
I initially installed pylint using $pip install pylint. But when I execute $pylint --load-plugins pylint_django it throws up an error saing that 'pylint' is not recognized as an internal or external command,
operable program or batch file.
Why is this happening?
There are two questions here. One is what is PATH and why is it needed, the other is why is pylint not working and although related they have different answers. I will explain both.
First you have to understand the concept of PATH. Whenever you type a command(let's say you typed command) in cmd in Windows or in a terminal in MacOS or Linux OS, what you are really saying is execute a program with the name command.
Now the OS cannot possibly look at all the secondary storage devices to find a program with the same name. That would take a long time and there might be multiple programs with the same name. So, it has a list of directories where it looks for that program. This list of directories are known as the PATH.
If you are executing the command pylint then you are telling Windows to run a program of the name pylint that exists in one of the directories in the PATH. Windows tries to do that but can't find anything that exists with that name in its list of PATH directories. So, it gives you that error. You can see your windows PATH like explained here.
All python modules are added in the same directory that should exist in the PATH already. So the reason pylint command is not working is probably something else.
The other problem is why pylint is not working. I think the reason for that is you should execute
pip install pylint-django
and not
pip install pylint
I'm trying to use Tweepy and am trying to install it but typing in
"pip install tweepy" results in:
'pip' is not recognized as an internal or external command, operable
program or batch file."
This is a windows 10 pc. I've been trying this on the command prompt. I've tried changing the path in the windows settings.
'
C:\Users\Orlando>pip install tweepy 'pip' is not recognized as an
internal or external command, operable program or batch file.
I expect it to begin installing Tweepy but instead I get this error message.
Go to environment variables
and add to PATH the following paths
...\PythonXX\
and
...\PythonXX\Scripts\
where ... is your Python installation directory
The reason that pip is not working on your pc is that ENVIRONMENT PATH is not set to your python script directory you can add that simply like:
Press WIN+R and type in SystemPropertiesAdvanced click on Environment Variables button
then search for path in System variables and add a new entry as described by #bleand,
i.e., YOUR PYTHON INSTALLATION DIRECTORY\Scripts
you can find your PYTHON INSTALLATION DIRECTORY by This stackO answer
I this did't works then try this SO answer for installing pip in your system
Try reading Command line and environment for getting the reason why py -m pip install PACKAGENAME works..
Thanks...
I'm pretty new to the community, and new to python. I know the basics. But now I'm trying to download third party modules via pip but everything I do regarding pip displays an error. I know that pip comes with python seeing as the pip file is there.
I am running python 3.6 and windows 10. I have downloaded pip off the internet also but when I try to run the program it says already downloaded. The first time I ran it it said that it was downloading and successfully downloaded so I'm kind of lost.
Thanks!
Sounds like it's already properly installed. pip is a program called from a system terminal, not from a Python prompt. Open up a command prompt and type pip -h see what happens. If this does not print out the help page on how to use pip, and instead you get an error to the effect of:
"pip" is not recognized as an internal or external command, operable program or batch file
You then need to point Windows where to find the program (pip.exe) by adding your Python scripts folder C:\...\Python36-32\Scripts\ to your environment PATH variable. To do this, open the Start menu and search for "environment variables". Open the dialogue and find one named PATH (case doesn't matter). If it doesn't exist, create it. Edit the value and add the file path to the scripts folder to the end using ; as a separator.
As per your comment, if you are getting an access denied windows error this answer from another question may help you.
You need need to be sure either your powershell is being run as administrator, or by creating a virtual environment.
The Installing Packages docs have a great overview, and instructions.
https://packaging.python.org/installing/#use-pip-for-installing