pip

How do I install a pip package on a machine without Internet access?

How do I install a pip package on a machine without Internet access? I’m working on a Linux machine without (direct) Internet access. I want to pip install foo for some pypi package foo, but – obviously, that won’t work. I have, of course, other machines which are connected the Internet. How would I go …

Total answers: 1

How to install Python3.12 on ubuntu?

How to install Python 3.12 on Ubuntu 23.10? I did several wrong things for my first day on Ubuntu when trying to code with Python, so I just reinstalled it. Can anyone tell me the best way to install Python here? I am using Ubuntu 20.04, and I am updating to Ubuntu 23.10 right now. …

Total answers: 1

Problem with created Python 3.6 virtual environment on Ubuntu 20.04 with Pip

Problem with created Python 3.6 virtual environment on Ubuntu 20.04 with Pip Subject: Issue with Segmentation Fault When Running pip list in Python 3.6 Virtual Environment I recently installed Python 3.6 and successfully created a virtual environment. However, when I try to execute the command ‘pip list’ within the virtual environment, I encounter a segmentation …

Total answers: 1

How do I determine the apt package name for a given PyPI package?

How do I determine the apt package name for a given PyPI package? Suppose I want to install a Python package system-wide on a Debian/Devuan system. Some PyPI packages have DEB packages available via the repository’s apt sources, with package names prefixed by python3- (or python-, depending on Debian version). But – not all of …

Total answers: 2

Install a Python package on Debian/Devuan when apt has no package for it

Install a Python package on Debian/Devuan when apt has no package for it I want to install some Python package pandasql system-wide, on a Devuan (or Debian) system. It’s in the Python Package Index, but – there doesn’t seem to be a (dpkg) package for it; let’s assume that there actually isn’t. Now, if I …

Total answers: 2

Unable to install mysqlclient on Ubuntu 22.04.3

Unable to install mysqlclient on Ubuntu 22.04.3 I want to install MySQL on my Ubuntu 22.04.3 for a Django course I’m taking. I used the following command: pip install mysqlclient I tried the suggestions in this thread: Unable to install mysqlclient on Ubuntu 20.10 I followed the steps mentioned but didn’t resolve it. Step 1 …

Total answers: 1

Modules installed with pip don't work after Bookworm upgrade

Modules installed with pip don't work after Bookworm upgrade I recently upgraded to Debian Bookworm from Bullseye. I am aware that installation of python packages requires a different method as compared to pip install <package>. Therefore, I install new python packages using pipx which works well. Question: The packages that have already been installed using …

Total answers: 2

Importing python packages installed with pipx

Importing python packages installed with pipx I want to use the panflute package in some Python code, like this: import panflute. I don’t want to start a virtual environment every time I run that code, if I can avoid it. (It’s a Pandoc filter, obviously.) I tried $ sudo apt install python3-panflute, but there is …

Total answers: 3

pip disappeared after system upgrade

pip disappeared after system upgrade I upgraded from 22.10 to 23.04 just now without any problems. However, after the upgrade my pip is not working and I cannot figure out how to make it working again. If i just want to call it: pip bash: /usr/local/bin/pip: cannot execute: required file not found With sudo: sudo …

Total answers: 3

Download via pip and npm not working

Download via pip and npm not working I am not able to download pip packages or npm packages via terminal. However my browser internet connection is working. I am not sure what is the issue.Please help me to fix it. I am using Ubuntu22.04 My python program takes almost 1 hr to run. Previously it …

Total answers: 1

pip error on Ubuntu: externally-managed-environment × This environment is externally managed

pip error on Ubuntu: externally-managed-environment × This environment is externally managed I upgraded to Ubuntu 23.04. Now, when I run a pip command (installed using sudo apt install python3-pip), I get this error: $ pip install –user <foobar> error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install …

Total answers: 5

Python 3.8 + Pip on WSL

Python 3.8 + Pip on WSL I’ve being looking around on the internet and either nobody else has this problem, or nobody else can solve it. I used the deadsnake repository to use Python 3.8, which seems to work, but when I try to get pip it starts complaining about not having distutils.cmd. This is …

Total answers: 1

Difference between installing a package with 'apt' and 'pip'

Difference between installing a package with 'apt' and 'pip' I have been trying to install a Python module which relies in setuptools, and apparently the module was installed using apt. However, it seems to be the wrong version, so I tried to install it using pip just to see if anything changes (spoiler: nothing changes …

Total answers: 2

Broken pip due to bad OpenSSL module

Broken pip due to bad OpenSSL module whenever I run pip (python -m pip) I get the following error message: Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> load_entry_point(‘pip==20.0.2’, ‘console_scripts’, ‘pip’)() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2854, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, …

Total answers: 5

A pip install for jupyter notebook puts its binaries in ~/.local/bin, and then I'm asked to add ~/.local/bin to my PATH. Is it a normal place?

A pip install for jupyter notebook puts its binaries in ~/.local/bin, and then I'm asked to add ~/.local/bin to my PATH. Is it a normal place? pip install jupyterlab pip install notebook sent binaries to ~/.local/bin: ls ~/.local/bin ipython jupyter-bundlerextension jupyter-kernelspec jupyter-migrate jupyter-notebook jupyter-troubleshoot send2trash ipython3 jupyter-dejavu jupyter-lab jupyter-nbclassic jupyter-run jupyter-trust wsdump jlpm jupyter-execute jupyter-labextension …

Total answers: 1

Defaulting to user installation because normal site-packages is not writeable

Defaulting to user installation because normal site-packages is not writeable I’ve just installed Devuan GNU/Linux chimaera, and a bunch of packages manually. Also installed python-is-python3. I now run, for example: pip install pymonetdb and I get: Defaulting to user installation because normal site-packages is not writeable Collecting pymonetdb Downloading pymonetdb-1.6.2-py2.py3-none-any.whl (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.6/74.6 kB …

Total answers: 2

After updating to Ubuntu 22.04, I am no longer able to access Jupyter Notebook

After updating to Ubuntu 22.04, I am no longer able to access Jupyter Notebook When I try to launch Jupyter Notebook, the browser (firefox) launches and I get the following error: Access to the file was denied The file at /home/benjamin/.local/share/jupyter/runtime/nbserver-11758-open.html is not readable. It may have been removed, moved, or file permissions may be …

Total answers: 2

How to uninstall pip3 from home directory?

How to uninstall pip3 from home directory? I’m on Ubuntu 20.04.4 LTS. I was messing around in my home directory and ran pip3 install –upgrade pip trying to upgrade pip3. I got this warning: WARNING: The scripts pip, pip3 and pip3.8 are installed in ‘/home/my_username/.local/bin’ which is not on PATH. Consider adding this directory to …

Total answers: 1

I can't use python pip to download any tools and I don't know why

I can't use python pip to download any tools and I don't know why here’s a picture of the error I get and the python installations i have, I tried to delete python7.2 and it seems like it’s not working.. any help is highly appreciated Asked By: Zoozoo || Source The package name is python3-pip: …

Total answers: 1

Cannot install pip module because there is 'no space' left on device

Cannot install pip module because there is 'no space' left on device When I try to install the pytorch module for python3.8 pip complains that there is no space left on the device e.g. $ pip3 install torch Collecting torch Using cached torch-1.8.1-cp38-cp38-manylinux1_x86_64.whl (804.1 MB) ERROR: Could not install packages due to an EnvironmentError: [Errno …

Total answers: 2