I am trying to run rodeo (http://blog.yhathq.com/posts/introducing-rodeo.html). I followed the instructions-- pip installed it. The install seemed to go fine, but when I type rodeo . , I get the following:
-bash: rodeo: command not found
The files from the install are stored in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rodeo (though I think it should be stored in /usr/bin/local) and there is no executable. Similar things happen when I try, for example, to pip install ipython. My guess is that it has something to do with my PATHs, but I have not been able to solve the problems. Thanks in advance for any help.
I do not see mention of a pip install of rodeo from the page you referenced. Rather, a .dmg file is downloaded, you should open it, and drag rodeo to your Applications folder. Start the rodeo app via the Applications folder. After starting, it checks your environment for other dependencies and asks your approval for installation. Install all the missing pieces, apparently one at a time, since you keep clicking "TRY STARTING AGAIN" after each install.
I tried same thing on my ubuntu PC. And 'rodeo' command didn't work too.
So, What i did is
search where the rodeo app was installed
rodeo app was installed in '/opt/Rodeo/' path. (If you installed in other path, then revise beneath command)
type command '/opt/Rodeo/rodeo' and punch the enter button.
I don't know why but, where your set directory in terminal window,
It is not allowed to omit 'opt/Rodeo/'.
I hope it works on your computer.
Related
I've been facing a problem for some time and I'm not finding a solution. At the company where I work, I'm trying to implement Python, but when I run the conventional command "Pip install pandas" in my vscode terminal, it gives an error because the company blocks the installation of external libraries, so it's as if I had to install these libraries on a PC without connection.
How should I follow this procedure?
I downloaded the .whl library from PyPi:
pandas-1.5.2-cp310-cp310-win_amd64.whl
ran pip install pandas-1.5.2-cp310-cp310-win_amd64.whl -f ./ --no-index --no-deps
Ok, the installation was successful. But this installation of pandas by cmd is not going to my system, because when trying to import pandas in my vscode it is not running, as if it had not been installed.
Would it be possible for me to download several libraries and leave them located in a folder where everyone in the company can use them? example using a function where I declare my path where all the libraries will be, and then I import them from there??
First confirm if you can run any python commands from VSCode. If the answer is yes, you can proceed to install your .whl file in python script folder.
Look for the Scripts folder
Add in your .whl file in this folder
Then open the folder, select the path, press Ctrl+D to display full path, type in cmd to open command prompt to this directory
Then just run your pip install here and you should be good to go
Remember the key is that your VSCode must be able to find Python.exe. If it can't from the start, you will need to add your python directory to PATH in environment variable
I'm a beginner so there might be something wrong written, not a native speaker either...
I created a python script to edit some spreadsheets, and I'm wondering if there's a way to convert that to a .exe, so I don't have to open vscode every time. I did some search and find out that pyinstaller is a way to do it, but I couldn't figure out how to install it.
I'm using a corporate machine so I don't have access to the cmd prompt nor the terminal.
I can download the tar.bz2 file from anaconda.org, I don't know if that helps, but that's all I could do rn
You can download the Pip package as you have said and follow the steps of this link https://www.geeksforgeeks.org/download-and-install-pip-latest-version/ to install the downloaded package.
If you have an IDE called “PyCharm” installed on your machine, here’s what you can do:
The GUI Way
Go to the File Tab.
Click on Settings:
A dialog will popup. Click on Project: <Your Project Name>. Then click on Python Interpreter and then click on the + sign on the bottom of the dialog.
Another dialog will popup. In the search bar at the top, search for the package we want, in our case pyinstaller. Relevant results will appear. Click on the desired option.
Final Step. Just click Install Package at the bottom of the dialog and wait till it installs.
Hooray! You have installed the package.
The Integrated Terminal Way
Open Pycharm and at the bottom, click on the Terminal option this will open up the integrated terminal.
Type pip install pyinstaller and wait till it installs. You may have to use pip3 install pyinstaller. Wait till it installs.
Done!
Installing Another Terminal
If you don’t have PyCharm, you can choose this way. You can install some third-party terminal like Git Bash. You can download this terminal by clicking here.
After downloading, you can open Git Bash and try to run the commands that I mentioned in the above section. That’s it!
Note that if pip install pyinstaller or pip3 install pyinstaller doesn’t work, you may need to add python -m or python3 -m at the start of the commands.
Also note that the 2nd and 3rd options require pip and python to be in the system’s path.
Thank You!
I first installed Spyder and then afterwards Python on a server (with Windows Server 2019) all on the directory C:\Users\wi932. Now I want to use the command prompt to install packages (e.g. tensorflow) but unfortunately I get the error message that "the command pip is either wrongly written or can't be found "(translated). I am wondering why I get this error because on my normal laptop I type in the exact same commands and there everything is okay.
I have attached a screenshot of the command prompt. I tried to install the packages both in the spyder folder ( C:\Users\wi932.spyder-py3) and the Python folder ( C:\Users\wi932\Python\Python310). I always get the same error.
Does anyone of you have an idea what the problem might be and how to fix it? I'll appreciate every comment.
The directory containing pip is located in <Python directory>\Scripts. To make Windows find it, you need to check the "Add Python to PATH" checkbox during installation.
Some packages, including tensorflow, have no version for the last Python distro, so you need to "downgrade" it by installing an older version, for example, 3.8.
Try installing python in local download it at www.python.org then you can run any command with pip directly in local
I'm wanting to learn machine learning, but it requires that I use 'pip.' I'm still very new to a lot of this stuff. I've installed Python 3.4 64-bit and get-py.py.
When I run pip install sklearn I get 'pip' is not recognized as an internal or external command, operable program or batch file.
Here's a screenshot of my environmental variable PATH
https://gyazo.com/c7ec926401878845d5c4f9a556cf00ee
Any help would be greatly appreciated. I have checked out other posts where people had similar issues, but I tried various things and nothing worked.
Easiest solution is to just download a platform like Anaconda for example. It is Python with many libraries (sklearn, pandas, numpy, ...) and also with pip, all in a user-friendly Windows installer package, that takes care of everything for you.
https://www.continuum.io/downloads
If you really want to do it yourself, then
download get-pip.py (https://bootstrap.pypa.io/get-pip.py)
make sure you have Python installed and in your PATH, for example by running python --version in command prompt
Navigate to the directory, where you downloaded get-pip.py (in command prompt using the command cd).
Run the command python get-pip.py from a command prompt with admin privileges (possibly not needed, but just to make sure).
This should be all. Close your command prompt, open it again and run pip --version to test it. If it doesn't work, then search your computer for a file named pip.exe (most likely in your Python directory) and if you find it, add its path to your PATH variable (given the screenshot, I assume you know how to do this).
I downloaded Python 3.6 and the pip was installed on my system.
I found pip at below location:
C:\Users\Admin\AppData\Local\Programs\Python\Python36\Scripts
Also, before I found pip I used below command on my command prompt to install pyperclip:
python -m pip install pyperclip
For anyone that might have installed Python using the MSI installer, and ticked the box to include pip, but still gets the error 'pip' is not recognized as an internal or external command, operable program or batch file:
It looks like that the pip executable is installed in the \Scripts subdirectory of the Python installation, but that directory does not get automatically added to PATH.
For me, since I had installed Python 2.7, the directory was C:\Python27\Scripts. After adding this path to the PATH environment variable, and open a new CMD window, pip was available as a command.
I've made a workaround that will help you, copy the batch script below and modify it as specified:
#"PATH to python.exe" "PATH to pip.exe" %*
For example like this:
#"C:\programming\bin\python374\python.exe" "C:\programming\bin\python374\Scripts\pip.exe" %*
Save this file as pip.bat on Desktop and then move it to C:\Windows\system32.
For Python 3.7 or higher at least (as today is October 4th 2019) in the installation window you need to check the box "add to PATH" when you first install Python.
I'm late now, but just add python to your environment variables.
It´s explained in this short video, how to set up python to your environment variables:
https://www.youtube.com/watch?v=Y2q_b4ugPWk
after that pip should work on your cmd prompt, without cd to
"C:\Users\Admin\AppData\Local\Programs\Python\Python36\Scripts"
This is late but in case anyone runs across this issue, pip installed for me as "pip3". Once I used pip3 as my command and not pip, it worked fine. Threw me for quite a loop since I've been using Python for years.
PIP Install and Upgrade
Ensure you are accessing the right location while accessing pip as shown in my link above. Starting Python 3.4, it is included by default with the Python binary installers.
Environment Variable
It is also a good idea to update the environment variable if the path is not accessible by default, once the installation is complete.
If it is specifically pip you want you could install python again making sure to tick the install pip box which it sounds like you failed to upon initial installation.
I am tying to install pygame 3.5 to my laptop and when doing so cmd doesn't work the way I want to. I don't know how to use cmd much I only got to where I was by opening at the location in the second screen shot and typing in -m pip install pygame.
This clearly doesn't work, so I was wondering what do I type in cmd to get it work (including cd and how to get to a certain location). I need to install pygame to use on my compiler which is IDLE. I have Python 3.5.0 and I for certain reasons can't use a different version.
Here are the screenshots of what I am doing
The way I access file is I do Shift+Right Click and Open Command Line here and just type the stuff -m... stuff mentioned above and shown in first screen shotin command line
To install with pip you need to use C:...\ python -m pip install full_name_of_file.whl and pygame needs to be in the same directory as pip. At least, that has always worked for me.
Sometimes, it is easier to navigate to the folder in which pip 3.5 is and put the whl there, then run C:..\ pip install full_name_of_file.whl. You may also need to run CMD as Administrator, because it is making changes to restricted folders (depending on how your administration is set up).