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

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

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