Posts

Showing posts with the label Pip

Can't Install PyQt5 Using Pip

Answer : Try this: python3 -m pip install PyQt5 You need to upgrade your pip pip install --user --upgrade pip Then do a fresh install pip install PyQt5 or pip3 install PyQt5

Anisible Pip3 Install Keeps Failing On Remote Service (No Setuptools Found In Remote Host, Please Install It First)

Answer : Ansible needs setuptools to be installed for the version of Python that is being used to run Ansible modules, which, by default, is Python 2. So you need to run pip2 install setuptools or equivalent in order to install setuptools in Python 2.

Bash: Python3: Command Not Found (Windows, Discord.py)

Answer : In the python installed( "c:\\Installationpath\Python3.6.0" ) path you will find "python.exe" , just copy paste in the same place and rename it as "python3.exe" , now in the command prompt you can check python3 command should display your python installation. Don't forget to open a new terminal. On Windows the normal name for the python executable is python.exe (console program) or pythonw.exe (for GUI programs). The python executable is sometimes called python3 on some platforms, where the default ( python ) is the old python 2. On many UNIX-based (inc. Linux and OS X) systems, python 2 is used by system utilities, changing it could have bad consequences on those platforms, hence the name "python3". On Windows you should be fine - there are other issues on Windows but you won't get those unless you try to use more than one python version. In windows using git bash, python3 didn't worked for me: $ python --ve...

After Installing With Pip, "jupyter: Command Not Found"

Answer : you did not log out and log in ? It should be on your path to execute. If not, pip installed executables in .local, so in a terminal: ~/.local/bin/jupyter-notebook should start notebook To be able to run jupyter notebook from terminal, you need to make sure that ~/.local/bin is in your path. Do this by running export PATH=$PATH:~/.local/bin for your current session, or adding that line to the end of ~/.bashrc to make your changes last for future sessions (e.g. by using nano ~/.bashrc ). If you edit ~/.bashrc you will need to log out and log back in to make see your changes take effect. Try python -m notebook Or, if you used pip3 to install the notebook: python3 -m notebook On Mac OS Catalina and brewed Python3.7

Can I Force Pip To Reinstall The Current Version?

Answer : pip install --upgrade --force-reinstall <package> When upgrading, reinstall all packages even if they are already up-to-date. pip install -I <package> pip install --ignore-installed <package> Ignore the installed packages (reinstalling instead). You might want to have all three options: --upgrade and --force-reinstall ensures reinstallation, while --no-deps avoids reinstalling dependencies. $ sudo pip install --upgrade --no-deps --force-reinstall <packagename> Otherwise you might run into the problem that pip starts to recompile Numpy or other large packages. If you want to reinstall packages specified in a requirements.txt file, without upgrading, so just reinstall the specific versions specified in the requirements.txt file: pip install -r requirements.txt --ignore-installed

Can't Install Levenshtein Distance Package On Windows Python 3.5

Answer : While not solving your problem directly, you should be able to install the library using the excellent unofficial Windows binary reposistory here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-levenshtein Download the .whl file and install it using pip: pip install python_Levenshtein-0.12.0-cp35-none-win_amd64.whl As for the error, I agree with Rogalski. You likely need a C compiler installed (like the free Visual Studio Community Edition). Edit: Sorry, I just noticed that this has already been suggested in one of your linked questions here: https://stackoverflow.com/a/29926192/6345502 - I hope it helps anyway! Had a similar issue, solved by installing another related library: python-Levenshtein-wheels ; pip install python-Levenshtein-wheels In case you are using Anaconda, try: conda install -c conda-forge python-levenshtein