Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
39
views
Uninstall Jupyter
I am running Debian Bookworm OS and installed Juypter using the following command sudo pip3 install --break-system-packages jupyter and would like to uninstall the program, I have tried the following options but none of them seem to work: 1) sudo apt get remove 2) pip uninstall juypter 3) sudo -H py...
I am running Debian Bookworm OS and installed Juypter using the following command
sudo pip3 install --break-system-packages jupyter
and would like to uninstall the program, I have tried the following options but none of them seem to work:
1) sudo apt get remove
2) pip uninstall juypter
3) sudo -H python3 -m pip uninstall jupyter_core jupyter_qtconsole nbformat
4) pip uninstall $(pip freeze | grep jupyter )
Could someone help me uninstall the program?
Thanks Daniel
Daniel
(9 rep)
Jul 11, 2025, 07:59 AM
• Last activity: Jul 11, 2025, 09:38 AM
1
votes
2
answers
33
views
Error when trying up upgrade package installed usong pipx
A package (poetry, for use with python), was installed on an installation of Ubuntu 24.10/oracular. The package was installed using pipx: pipx install poetry It is required to update poetry using pipx (poetry updating itself using the poetry self update command is not an option in this case). To do...
A package (poetry, for use with python), was installed on an installation of Ubuntu 24.10/oracular.
The package was installed using pipx:
pipx install poetry
It is required to update poetry using pipx (poetry updating itself using the poetry self update command is not an option in this case). To do this the following is run:
pipx upgrade poetry
This returns an error saying that the package is not installed:
Package is not installed. Expected to find /home/sir_mallard/.local/share/pipx/venvs/poetry, but it does not exist.
However, the package is installed, as can be found by running:
which poetry
which returns
/home/sir_mallard/.local/bin/poetry
How can pipx's expected installation location for the package be changed to the installed location, so that pipx can be used to upgrade the package?
acolls_badger
(113 rep)
Jun 24, 2025, 06:52 PM
• Last activity: Jun 25, 2025, 04:18 PM
3
votes
2
answers
6099
views
python easy_install or pip errors about sysconfig
somehow the installation of python is broken in my linux OEL 6.9. pip or easy_install are broken and I cannot do anything. i get the same error on both sides: # easy_install Traceback (most recent call last): File "/usr/bin/easy_install", line 5, in from pkg_resources import load_entry_point File "/...
somehow the installation of python is broken in my linux OEL 6.9.
pip or easy_install are broken and I cannot do anything.
i get the same error on both sides:
# easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 947, in
class Environment(object):
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 951, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 180, in get_supported_platform
plat = get_build_platform()
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 380, in get_build_platform
from sysconfig import get_platform
ImportError: No module named sysconfig
I removed python-setuptools to no avail.
I think i was trying to update latest version of pyOpenSSL and it crashed and cannot fix.
we are running Oracle enterprise Linux 6.6 in a VM.
how to fix it without resorting to installing python 2.7 which is not included in the official repos
thank you
danidar
(201 rep)
May 30, 2018, 09:14 AM
• Last activity: Jun 23, 2025, 11:01 AM
0
votes
1
answers
5469
views
pip not working after installing another python version
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error- File "/usr/bin/pip", line 7, in from pip._internal import main File "/usr/lib/python2.6/site-packages/pip/_internal/__...
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error-
File "/usr/bin/pip", line 7, in
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 92
_blocking_errnos = {errno.EAGAIN, errno.EWOULDBLOCK}
^
SyntaxError: invalid syntax
I am not understanding what the actual problem is.
Sumedh Junghare
(109 rep)
Mar 22, 2019, 01:10 PM
• Last activity: Jun 14, 2025, 02:03 PM
0
votes
1
answers
3834
views
Python3.6's Pip Checking wrong Python Version
I've recently upgraded to use Python 3.6 on Ubuntu 16.04. Now I have Python 2.7, 3.5, and 3.6 all on the same system. I've had pip (defaults to v2.7), and pip3 (defaults to v3.5), and I then reinstalled pip3 according to this link: https://stackoverflow.com/a/44254088/3123703 . I'm now on the path t...
I've recently upgraded to use Python 3.6 on Ubuntu 16.04. Now I have Python 2.7, 3.5, and 3.6 all on the same system. I've had pip (defaults to v2.7), and pip3 (defaults to v3.5), and I then reinstalled pip3 according to this link: https://stackoverflow.com/a/44254088/3123703 .
I'm now on the path to installing all the libraries I'm using for the new Python 3.6. But for some reason, pip3.6 is checking for the libraries in Python 3.5 folders:
$ sudo pip3.6 install numpy
Requirement already satisfied: numpy in /usr/local/lib/python3.5/dist-packages
Also:
$ pip3 --version
pip 9.0.1 from /home//.local/lib/python3.6/site-packages (python 3.6)
$ pip3.6 --version
pip 9.0.1 from /home//.local/lib/python3.6/site-packages (python 3.6)
Is there a way to get pip3.6 to not look in the Python 3.5 folders? Or do I have to completely uninstall Python 3.5 and Python 3.6 and start from scratch?
FYI, I'm not asking for a specific package, as numpy was just an example here.
nfmcclure
(101 rep)
Jun 20, 2017, 06:06 PM
• Last activity: May 23, 2025, 09:02 AM
0
votes
1
answers
4055
views
Locating pip configurations outside of pip.conf
I am trying to modify pip (version 9) to exclusively retrieve python packages from my Artifactory server instead of pypi. my /etc/pip.conf file has only configurations to hit my Artifactory repository however when analyzing network packets I can see I am still retrieving packages from pypi.org runni...
I am trying to modify pip (version 9) to exclusively retrieve python packages from my Artifactory server instead of pypi.
my /etc/pip.conf file has only configurations to hit my Artifactory repository however when analyzing network packets I can see I am still retrieving packages from pypi.org
running the
pip.conf
command shows only my /etc/pip.conf file is present. I have also checked for a hidden pip.conf file in my home directory. Is there any other configuration files pip reads from when retrieving Python packages that may be causing this behaviour?
CyberStems
(356 rep)
May 13, 2021, 05:48 PM
• Last activity: May 22, 2025, 11:07 PM
2
votes
1
answers
6400
views
Dockerfile | executor failed running [/bin/sh -c poetry install --no-dev]: exit code: 1
I'm new to Docker, so I am not sure how to interpret the cause of errors. "[Poetry][1] is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you." `pip` is failing as I have not provide...
I'm new to Docker, so I am not sure how to interpret the cause of errors.
"Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you."
pip
is failing as I have not provided credentials. **How do I add my credentials to my url
or pytest.conf
file?**
---
Update:
I have created a pip.conf
file.
Now, docker build
has a lot more successful installs. However, still fails.
---
pip.conf
(PAT
censored):
[global]
extra-index-url=https://@pkgs.dev.azure.com/iotahoe/Halo/_packaging/private-sources/pypi/simple '
ls
:
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/ontology_tagger$ ls
Dockerfile README.md azure-pipeline-ontology_tagger.yaml ontology_tagger poetry.lock pyproject.toml pytest.ini wss-unified-agent.config wss_agent.sh
pytest.ini
:
[pytest]
markers =
integration: create endpoint and test returned confidence intervals
unit: interrogate results of most recent trained model on select inputs
testpaths = tests/
---
**Credentials Issue**
danielbellio@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/ontology_tagger$ docker build --no-cache -t my_app -f /home/danielbellio/.ssh/workers-python/workers/ontology_tagger/Dockerfile .
[+] Building 1880.1s (16/23)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 38B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.7-slim 8.8s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> CACHED [base 1/7] FROM docker.io/library/python:3.7-slim@sha256:798c7c77f4bba96b35de5fe9832b81084dcc4c1c52806d7976bf9233c7c3c4a6 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 2.13kB 0.0s
=> CACHED https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py 0.0s
=> [base 2/7] RUN apt-get update -y && apt-get -y --no-install-recommends install curl wget && rm -rf /var/lib/apt/lists/* 14.7s
=> [base 3/7] WORKDIR /home/worker/python/ontology_tagger 0.1s
=> [base 4/7] ADD https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py ./ 0.1s
=> [base 5/7] RUN python get-poetry.py && chmod +x /etc/poetry/bin/poetry 59.4s
=> [base 6/7] RUN --mount=type=cache,target=/root/.cache pip install twine keyring artifacts-keyring 27.8s
=> [base 7/7] RUN --mount=type=cache,target=/root/.cache apt update && apt install gcc -y 60.4s
=> [build 1/6] COPY . . 0.1s
=> [build 2/6] RUN poetry config experimental.new-installer false 3.0s
=> ERROR [build 3/6] RUN poetry install --no-dev 1705.5s
------
> [build 3/6] RUN poetry install --no-dev:
#16 1.980 Creating virtualenv ontology-tagger in /home/worker/python/ontology_tagger/.venv
#16 7.523 Installing dependencies from lock file
#16 13.64
#16 13.64 Package operations: 199 installs, 0 updates, 1 removal
#16 13.64
#16 13.64 - Removing wheel (0.37.0)
#16 15.02 - Installing six (1.16.0)
#16 16.84 - Installing typing-extensions (3.10.0.0)
#16 17.93 - Installing zipp (3.5.0)
#16 19.00 - Installing certifi (2021.5.30)
#16 20.10 - Installing charset-normalizer (2.0.4)
#16 21.21 - Installing greenlet (1.1.1)
#16 23.46 - Installing idna (3.2)
#16 24.81 - Installing importlib-metadata (4.6.3)
#16 26.52 - Installing ipython-genutils (0.2.0)
#16 28.13 - Installing markupsafe (2.0.1)
#16 29.85 - Installing promise (2.3)
#16 32.66 - Installing pyasn1 (0.4.8)
#16 35.22 - Installing pycparser (2.20)
#16 36.56 - Installing pytz (2021.1)
#16 38.94 - Installing rx (1.6.1)
#16 40.94 - Installing urllib3 (1.26.6)
#16 42.25 - Installing attrs (21.2.0)
#16 43.99 - Installing cachetools (4.2.2)
#16 45.63 - Installing cffi (1.14.6)
#16 47.33 - Installing graphql-core (2.3.2)
#16 49.38 - Installing grpcio (1.39.0)
#16 58.20 - Installing heapdict (1.0.1)
#16 60.10 - Installing humanfriendly (9.2)
#16 61.95 - Installing jmespath (0.10.0)
#16 63.62 - Installing locket (0.2.1)
#16 65.39 - Installing mako (1.1.4)
#16 67.76 - Installing numpy (1.21.1)
#16 79.65 - Installing oauthlib (3.1.1)
#16 81.43 - Installing protobuf (3.17.3)
#16 84.52 - Installing pyasn1-modules (0.2.8)
#16 86.70 - Installing pyparsing (2.4.7)
#16 88.44 - Installing pyrsistent (0.18.0)
#16 90.19 - Installing python-dateutil (2.8.2)
#16 92.69 - Installing python-editor (1.0.4)
#16 95.69 - Installing pytzdata (2020.1)
#16 98.10 - Installing pyyaml (5.3.1)
#16 101.9 - Installing requests (2.26.0)
#16 103.1 - Installing rsa (4.7.2)
#16 104.7 - Installing sqlalchemy (1.4.22)
#16 109.0 - Installing toolz (0.11.1)
#16 110.9 - Installing traitlets (5.0.5)
#16 113.0 - Installing tzlocal (1.5.1)
#16 116.0 - Installing zope.event (4.5.0)
#16 117.6 - Installing zope.interface (5.4.0)
#16 120.6 - Installing alembic (1.4.1)
#16 124.2 - Installing aniso8601 (7.0.0)
#16 125.9 - Installing backports.entry-points-selectable (1.1.0)
#16 127.9 - Installing botocore (1.21.19)
#16 135.5 - Installing click (7.1.2)
#16 137.3 - Installing cloudpickle (1.6.0)
#16 138.9 - Installing coloredlogs (14.0)
#16 140.5 - Installing contextlib2 (21.6.0)
#16 142.2 - Installing croniter (1.0.15)
#16 144.1 - Installing dask (2.30.0)
#16 147.4 - Installing dill (0.3.4)
#16 149.2 - Installing distlib (0.3.2)
#16 151.5 - Installing docstring-parser (0.7.1)
#16 760.1 - Installing filelock (3.0.12)
#16 762.5 - Installing fsspec (2021.7.0)
#16 766.0 - Installing funcsigs (1.0.2)
#16 768.2 - Installing future (0.18.2)
#16 778.4 - Installing gevent (21.8.0)
#16 810.7 - Installing google-auth (1.34.0)
#16 813.7 - Installing graphql-relay (2.0.1)
#16 815.7 - Installing grpcio-health-checking (1.39.0)
#16 817.7 - Installing itsdangerous (1.1.0)
#16 821.3 - Installing jinja2 (2.11.3)
#16 824.1 - Installing jsonschema (3.2.0)
#16 826.4 - Installing jupyter-core (4.7.1)
#16 828.7 - Installing marshmallow (3.13.0)
#16 831.3 - Installing msgpack (1.0.2)
#16 834.3 - Installing multidict (5.1.0)
#16 839.0 - Installing mypy-extensions (0.4.3)
#16 841.2 - Installing packaging (20.9)
#16 843.7 - Installing pandas (1.1.4)
#16 895.7 - Installing partd (1.2.0)
#16 898.7 - Installing pendulum (1.4.4)
#16 914.4 - Installing pillow (8.3.1)
#16 947.3 - Installing platformdirs (2.2.0)
#16 949.7 - Installing psutil (5.8.0)
#16 952.9 - Installing requests-oauthlib (1.3.0)
#16 955.5 - Installing smmap (4.0.0)
#16 958.1 - Installing sortedcontainers (2.4.0)
#16 960.0 - Installing tabulate (0.8.9)
#16 962.5 - Installing tblib (1.7.0)
#16 965.8 - Installing toposort (1.6)
#16 969.3 - Installing tornado (6.1)
#16 973.7 - Installing tqdm (4.49.0)
#16 976.6 - Installing watchdog (2.1.3)
#16 979.4 - Installing webencodings (0.5.1)
#16 981.2 - Installing websocket-client (0.59.0)
#16 983.9 - Installing werkzeug (1.0.1)
#16 986.8 - Installing zict (2.0.0)
#16 989.2 - Installing absl-py (0.13.0)
#16 992.2 - Installing async-timeout (3.0.1)
#16 994.5 - Installing bleach (4.0.0)
#16 996.7 - Installing bokeh (2.3.3)
#16 1020.0 - Installing cached-property (1.5.2)
#16 1023.2 - Installing cfgv (3.3.0)
#16 1025.6 - Installing chardet (4.0.0)
#16 1028.7 - Installing colorama (0.4.4)
#16 1030.6 - Installing configparser (5.0.2)
#16 1032.8 - Installing cycler (0.10.0)
#16 1035.1 - Installing dagster (0.9.22.post0)
#16 1041.2 - Installing defusedxml (0.7.1)
#16 1043.7 - Installing distributed (2.30.1)
#16 1049.5 - Installing distro (1.6.0)
#16 1052.8 - Installing docker (5.0.0)
#16 1055.5 - Installing dockerpty (0.4.1)
#16 1059.3 - Installing docopt (0.6.2)
#16 1064.4 - Installing entrypoints (0.3)
#16 1067.1 - Installing flask (1.1.4)
#16 1069.8 - Installing gevent-websocket (0.10.1)
#16 1072.8 - Installing gitdb (4.0.7)
#16 1075.4 - Installing google-auth-oauthlib (0.4.5)
#16 1078.1 - Installing graphene (2.1.9)
#16 1081.4 - Installing graphql-server-core (1.2.0)
#16 1085.9 - Installing identify (2.2.13)
#16 1089.3 - Installing joblib (1.0.1)
#16 1092.6 - Installing kiwisolver (1.3.1)
#16 1095.8 - Installing markdown (3.3.4)
#16 1099.0 - Installing marshmallow-enum (1.5.1)
#16 1101.4 - Installing mistune (0.8.4)
#16 1104.0 - Installing multiprocess (0.70.12.2)
#16 1107.9 - Installing nbformat (5.1.3)
#16 1111.8 - Installing nodeenv (1.6.0)
#16 1114.9 - Installing pandocfilters (1.4.3)
#16 1121.0 - Installing pathspec (0.8.1)
#16 1123.2 - Installing plumbum (1.7.0)
#16 1125.3 - Installing pox (0.3.0)
#16 1127.4 - Installing ppft (1.6.6.4)
#16 1129.2 - Installing prometheus-client (0.11.0)
#16 1131.2 - Installing pydantic (1.8.2)
#16 1136.3 - Installing pygments (2.9.0)
#16 1139.9 - Installing pymongo (3.12.0)
#16 1143.5 - Installing python-dotenv (0.19.0)
#16 1145.5 - Installing pyyaml-include (1.2.post2)
#16 1147.6 - Installing regex (2020.11.13)
#16 1151.2 - Installing s3transfer (0.5.0)
#16 1153.2 - Installing stringcase (1.2.0)
#16 1157.5 - Installing tensorboard-data-server (0.6.1)
#16 1161.9 - Installing tensorboard-plugin-wit (1.8.0)
#16 1165.3 - Installing testpath (0.5.0)
#16 1167.8 - Installing texttable (1.6.4)
#16 1170.2 - Installing toml (0.10.2)
#16 1172.8 - Installing torch (1.7.1)
#16 1469.6 - Installing typing-inspect (0.7.1)
#16 1472.3 - Installing virtualenv (20.7.2)
#16 1478.0 - Installing yarl (1.6.3)
#16 1481.9 - Installing aiohttp (3.7.4.post0)
#16 1488.6 - Installing autologging (1.3.2)
#16 1491.0 - Installing boto3 (1.18.19)
#16 1495.9 - Installing copier (5.1.0)
#16 1498.8 - Installing cryptography (3.4.7)
#16 1502.4 - Installing dagster-dask (0.9.22.post0)
#16 1506.1 - Installing dagster-graphql (0.9.22.post0)
#16 1509.5 - Installing databricks-cli (0.15.0)
#16 1514.2 - Installing dataclasses-json (0.5.4)
#16 1517.4 - Installing docker-compose (1.29.2)
#16 1521.0 - Installing flask-cors (3.0.10)
#16 1523.4 - Installing flask-graphql (2.0.1)
#16 1527.9 - Installing flask-sockets (0.2.1)
#16 1530.5 - Installing gitpython (3.1.20)
#16 1533.5 - Installing google-pasta (0.2.0)
#16 1536.4 - Installing graphql-ws (0.3.1)
#16 1539.7 - Installing gunicorn (20.1.0)
#16 1543.7 - Installing huggingface-hub (0.0.2)
#16 1546.6 - Installing matplotlib (3.4.2)
#16 1557.1 - Installing minio (6.0.2)
#16 1560.1 - Installing mongoengine (0.20.0)
#16 1562.9 - Installing motor (2.5.0)
#16 1565.5 - Installing nbconvert (5.6.1)
#16 1569.7 - Installing pathos (0.2.8)
#16 1572.6 - Installing pre-commit (2.14.0)
#16 1576.3 - Installing prometheus-flask-exporter (0.18.2)
#16 1581.1 - Installing protobuf3-to-dict (0.1.5)
#16 1586.2 - Installing psycopg2-binary (2.9.1)
#16 1590.0 - Installing pyarrow (2.0.0)
#16 1603.1 - Installing querystring-parser (1.2.4)
#16 1607.8 - Installing sacremoses (0.0.45)
#16 1615.6 - Installing scipy (1.7.1)
#16 1634.3 - Installing smdebug-rulesconfig (1.0.1)
#16 1637.7 - Installing sqlparse (0.4.1)
#16 1640.8 - Installing tensorboard (2.6.0)
#16 1653.9 - Installing threadpoolctl (2.2.0)
#16 1657.0 - Installing tokenizers (0.10.3)
#16 1664.0 - Installing torchmetrics (0.3.2)
#16 1668.0 - Installing xxhash (2.0.2)
#16 1671.7 - Installing dagit (0.9.22.post0)
#16 1676.9 - Installing dagster-aws (0.9.22.post0)
#16 1680.8 - Installing dagster-pandas (0.9.22.post0)
#16 1685.5 - Installing dagster-postgres (0.9.22.post0)
#16 1689.3 - Installing datasets (1.4.1)
#16 1692.6 - Installing mlflow (1.15.0)
#16 1701.5 - Installing pwmf (0.1.3.1.dev1)
#16 1704.6
#16 1704.6 EnvCommandError
#16 1704.6
#16 1704.6 Command ['/home/worker/python/ontology_tagger/.venv/bin/pip', 'install', '--no-deps', '--index-url', 'https://pkgs.dev.azure.com/iotahoe/Halo/_packaging/private-sources/pypi/simple ', 'pwmf==0.1.3.1.dev1'] errored with the following return code 2, and output:
#16 1704.6 Looking in indexes: https://pkgs.dev.azure.com/iotahoe/Halo/_packaging/private-sources/pypi/simple
#16 1704.6 User for pkgs.dev.azure.com: ERROR: Exception:
#16 1704.6 Traceback (most recent call last):
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 216, in _main
#16 1704.6 status = self.run(options, args)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
#16 1704.6 return func(self, options, args)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 325, in run
#16 1704.6 reqs, check_supported_wheels=not options.target_dir
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 183, in resolve
#16 1704.6 discovered_reqs.extend(self._resolve_one(requirement_set, req))
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 388, in _resolve_one
#16 1704.6 abstract_dist = self._get_abstract_dist_for(req_to_install)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 339, in _get_abstract_dist_for
#16 1704.6 self._populate_link(req)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 305, in _populate_link
#16 1704.6 req.link = self._find_requirement_link(req)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 270, in _find_requirement_link
#16 1704.6 best_candidate = self.finder.find_requirement(req, upgrade)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 899, in find_requirement
#16 1704.6 req.name, specifier=req.specifier, hashes=hashes,
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 881, in find_best_candidate
#16 1704.6 candidates = self.find_all_candidates(project_name)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 826, in find_all_candidates
#16 1704.6 project_url, link_evaluator=link_evaluator,
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 790, in process_project_url
#16 1704.6 html_page = self._link_collector.fetch_page(project_url)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 643, in fetch_page
#16 1704.6 return _get_html_page(location, session=self.session)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 455, in _get_html_page
#16 1704.6 resp = _get_html_response(url, session=session)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 169, in _get_html_response
#16 1704.6 "Cache-Control": "max-age=0",
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 543, in get
#16 1704.6 return self.request('GET', url, **kwargs)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/network/session.py", line 421, in request
#16 1704.6 return super(PipSession, self).request(method, url, *args, **kwargs)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 530, in request
#16 1704.6 resp = self.send(prep, **send_kwargs)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 650, in send
#16 1704.6 r = dispatch_hook('response', hooks, r, **kwargs)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook
#16 1704.6 _hook_data = hook(hook_data, **kwargs)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/network/auth.py", line 256, in handle_401
#16 1704.6 username, password, save = self._prompt_for_password(parsed.netloc)
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/network/auth.py", line 226, in _prompt_for_password
#16 1704.6 username = ask_input("User for {}: ".format(netloc))
#16 1704.6 File "/home/worker/python/ontology_tagger/.venv/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 259, in ask_input
#16 1704.6 return input(message)
#16 1704.6 EOFError: EOF when reading a line
#16 1704.6 WARNING: You are using pip version 20.2.2; however, version 21.2.4 is available.
#16 1704.6 You should consider upgrading via the '/home/worker/python/ontology_tagger/.venv/bin/python -m pip install --upgrade pip' command.
#16 1704.6
#16 1704.6
#16 1704.6 at /etc/poetry/lib/poetry/utils/env.py:1074 in _run
#16 1704.8 1070│ output = subprocess.check_output(
#16 1704.8 1071│ cmd, stderr=subprocess.STDOUT, **kwargs
#16 1704.8 1072│ )
#16 1704.8 1073│ except CalledProcessError as e:
#16 1704.8 → 1074│ raise EnvCommandError(e, input=input_)
#16 1704.8 1075│
#16 1704.8 1076│ return decode(output)
#16 1704.8 1077│
#16 1704.9 1078│ def execute(self, bin, *args, **kwargs):
------
executor failed running [/bin/sh -c poetry install --no-dev]: exit code: 1
Dockerfile
(lines 5 to 7):
#https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md
#require set DOCKER_BUILDKIT=1
FROM python:3.7-slim as base
RUN apt-get update -y \
&& apt-get -y --no-install-recommends install curl wget\
&& rm -rf /var/lib/apt/lists/*
ENV ROOT /home/worker/python/ontology_tagger
WORKDIR $ROOT
ARG ATLASSIAN_TOKEN
ARG POETRY_HTTP_BASIC_AZURE_PASSWORD
ARG ACCESS_KEY
ENV AWS_ACCESS_KEY_ID=$ACCESS_KEY
ARG SECRET_KEY
ENV AWS_SECRET_ACCESS_KEY=$SECRET_KEY
ARG REPO
ENV REPO_URL=$REPO
# Copy/symlink pypic file to the docker context before running docker build
ENV PYPIRC_PATH=$ROOT/.pypirc
ENV \
PYTHONFAULTHANDLER=1 \
POETRY_VERSION=1.1.4 \
POETRY_HOME=/etc/poetry \
XDG_CACHE_HOME=/home/worker/.cache \
POETRY_VIRTUALENVS_IN_PROJECT=true \
MPLCONFIGDIR=/home/worker/matplotlib \
PATH=/home/worker/python/ontology_tagger/.venv/bin:/usr/local/bin:/etc/poetry/bin:$PATH
# System deps:
ADD https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py ./
RUN python get-poetry.py && chmod +x /etc/poetry/bin/poetry
# Copy only requirements to cache them in docker layer
RUN --mount=type=cache,target=/root/.cache pip install twine keyring artifacts-keyring
RUN --mount=type=cache,target=/root/.cache apt update && apt install gcc -y
FROM base as ws
ARG WS_APIKEY
ARG WS_PROJECTVERSION=
ARG WS_PROJECTNAME=workers-python-ontology_tagger
ARG WS_PRODUCTNAME=HALO
COPY --chown=worker:worker . .
RUN --mount=type=cache,uid=1000,target=/home/worker/.cache poetry install --no-dev
COPY --from=openjdk:15-slim-buster /usr/local/openjdk-15 /usr/local/openjdk-15
ENV JAVA_HOME /usr/local/openjdk-15
ENV PATH $JAVA_HOME/bin:$PATH
RUN --mount=type=cache,uid=1000,target=/home/worker/.cache ./wss_agent.sh
FROM base as test
COPY . .
RUN poetry config experimental.new-installer false
RUN poetry install
RUN cd ontology_tagger && poetry run invoke deploy
# RUN sphinx-build -b confluence -Q docs/source docs/build -E -a -D confluence_server_pass=$ATLASSIAN_TOKEN
FROM base as package
COPY . .
RUN poetry build
RUN python -m pip install --upgrade pip && \
pip install twine keyring artifacts-keyring && \
twine upload -r $REPO_URL --config-file $PYPIRC_PATH dist/* --skip-existing
FROM base as build
COPY . .
RUN poetry config experimental.new-installer false
RUN poetry install --no-dev
RUN pip3 --no-cache-dir install --upgrade awscli
RUN aws s3 cp s3://iotahoe-datascience/python_workers/dbpedia/output/ontologytagger-2021-05-23-20-49-40-099/output/model.tar.gz $ROOT/ontology_tagger
RUN mkdir $ROOT/ontology_tagger/bert-base-cased && cd $ROOT/ontology_tagger/bert-base-cased && \
wget https://huggingface.co/bert-base-cased/resolve/main/config.json && \
wget https://huggingface.co/bert-base-cased/resolve/main/tokenizer.json && \
wget https://huggingface.co/bert-base-cased/resolve/main/tokenizer_config.json
FROM python:3.7-slim as production
ENV ROOT=/home/worker/python/ontology_tagger \
VIRTUAL_ENV=/home/worker/python/ontology_tagger/.venv\
PATH=/home/worker/python/ontology_tagger/.venv/bin:/home/worker/python/ontology_tagger:$PATH
COPY --from=build /home/worker/python/ontology_tagger/pyproject.toml /home/worker/python/
COPY --from=build /home/worker/python/ontology_tagger/.venv /home/worker/python/ontology_tagger/.venv
COPY --from=build /home/worker/python/ontology_tagger/ontology_tagger /home/worker/python/ontology_tagger
WORKDIR $ROOT
ENV PYTHONPATH=$ROOT:/home/worker/python/
# args in format mongodb://user:pass@mongodb:27017/ops?authSource=admin,ops,jobs,pipelineId-ce6b9dad-0fa1-42f7-a04d-b54d1468dc7f:ontology_tagger_worker
ENTRYPOINT [ "primary_worker", "--mongo" ]
StressedBoi_69420
(121 rep)
Aug 23, 2021, 01:34 PM
• Last activity: Apr 27, 2025, 12:03 PM
0
votes
2
answers
4582
views
Problems with installing pycryptodome
I have modified my thinkpad's BIOS to remove the wifi whitelist and plan to flash the modified bios back to the eeprom. To do that I have to use a tool called [thinkpad-uefi-sign](https://github.com/thrimbor/thinkpad-uefi-sign) which signs the image so it can boot. Thinkpad-uefi-sign requires using...
I have modified my thinkpad's BIOS to remove the wifi whitelist and plan to flash the modified bios back to the eeprom. To do that I have to use a tool called [thinkpad-uefi-sign](https://github.com/thrimbor/thinkpad-uefi-sign) which signs the image so it can boot. Thinkpad-uefi-sign requires using pycryptodome. I installed that using
apt install python3-pycryptodome
However it still didn't work and have the error
ModuleNotFoundError: No module named 'Crypto'
when I run thinkpad-uefi-sign/verify.py. I am using Debian Testing Trixie with up to date packages and Python 3.11.5.
Another thing I tried was to install it using
pip install pycryptodome
however that gave a warning that it could break packages and to install it instead using apt install python-xyz. I then installed python3-full and set up a venv (virtual environment) using python3 -m venv /path/to/venv. I installed pycryptodome in the venv using
/path/to/venv/bin/pip3 install pycryptodome
I then ran the script thinkpad-uefi-sign/verify.py with
/path/to/venv/bin/python3 thinkpad-uefi-sign/verify.py Bios_Modded.bin
and still ran into the same error. After that I tried installing pycryptodomex, Crypto, and pycrypto using pip3 from the venv but still ran into the error when running the program. I additionally tried to try the answers from [this other post](https://stackoverflow.com/questions/51824628/modulenotfounderror-no-module-named-crypto-error) , but it didn't help much.
I also tried using a macbook and it seemed to work there for some reason so it might be a packaging-related issue.
Encase this could be helpful, this is the command and the full output.
$ ./python3_venv_with_pycryptodome/bin/python3 thinkpad-uefi-sign/verify.py Bios_Modded.bin
Traceback (most recent call last):
File "/home/witherslayer/Sowa/ThkpX1CG2_UEFIs/workflow/thinkpad-uefi-sign/verify.py", line 19, in
from Crypto.PublicKey import RSA
ModuleNotFoundError: No module named 'Crypto'
witherslayer
(1 rep)
Sep 18, 2023, 08:27 AM
• Last activity: Apr 21, 2025, 07:01 PM
0
votes
1
answers
5231
views
How to install python3 with all it is tools on Redhat RHEL7 offline machine
I have a Django project that is going to be installed in an RHEL 7 server with no internet access. I need to include everything locally, starting from python3 source, to pip and setup tools. with every package that the system may need to run python, I have added tons and tons of packages, but still,...
I have a Django project that is going to be installed in an RHEL 7 server with no internet access. I need to include everything locally, starting from python3 source, to pip and setup tools. with every package that the system may need to run python, I have added tons and tons of packages, but still, it gives me error all the time. I'm using this
And it ends up with a failure in installing python:
install.sh
script to achieve that purpose
#!/bin/bash
cd ./needed_pkgs/
rpm -i build-essentials-2019-3pclos2019.noarch.rpm zlib-1.2.7-18.el7.x86_64.rpm gcc-c++-4.8.5-39.el7.x86_64.rpm gcc-4.8.5-39.el7.x86_64.rpm cpp-4.8.5-39.el7.x86_64.rpm glibc-devel-2.17-292.el7.x86_64.rpm glibc-headers-2.17-292.el7.x86_64.rpm kernel-headers-3.10.0-1062.el7.x86_64.rpm
command -v python3 >/dev/null 2>&1 || {
echo >&2 "I require python3 but it's not installed, installing it .";
cd Python-3.7.5
make clean
./configure
make
sudo make install
}
cd ../..
#virtualenv --never-download venv
#source venv/bin/activate
for entry in "./pkgs"/*; do
pip install "$entry"
done
After days of trying, and as I was getting close to getting it all working, I got this strange error at the last step of pip install :



Ahmed Wagdi
(101 rep)
Feb 29, 2020, 03:09 PM
• Last activity: Mar 8, 2025, 06:04 AM
0
votes
0
answers
144
views
Installing python 3.12 and pip on Ubuntu 22
Im on Ubnutu 22 and trying to run some python code I developed on my mac which runs python 3.12, Ubuntu 22 comes with python 3.10.x but I cant use that version. Im also using the idle IDE and pip as the package manager. I have been unable to install various packages with pip into python 3.12 because...
Im on Ubnutu 22 and trying to run some python code I developed on my mac which runs python 3.12, Ubuntu 22 comes with python 3.10.x but I cant use that version. Im also using the idle IDE and pip as the package manager. I have been unable to install various packages with pip into python 3.12 because they don't end up in the 3,10 version path. I am concerned about inserting links because they may redirect only a part of the environment and leave me more confused than before. Why is there no simple way for the uninitiated to install python3.xx have the package managers and everything else work without wrestling with all manner of complexities. Is there a simple way to do this ? Thanks
parryj
(1 rep)
Feb 25, 2025, 01:33 AM
0
votes
1
answers
1325
views
I blew up python, pip, and dnf
I bought a book about cyber security in Python, and the author uses python version 3.9. I use Fedora Linux 37 and the default Linux is Linux 3.11. I set up a virtual environment and tried to install the authors' `requirements.txt` packages. The process choked; apparently the new version of python ca...
I bought a book about cyber security in Python, and the author uses python version 3.9. I use Fedora Linux 37 and the default Linux is Linux 3.11.
I set up a virtual environment and tried to install the authors'
requirements.txt
packages. The process choked; apparently the new version of python can't handle retrograde versions of, say, numpy (and other packages).
So I did something some may well criticize. I downloaded python 3.9 and compiled and installed it. It appeared to go OK. But then I noticed that both pip
and dnf
were broken.
pip
gave me the message:
-shellsession
$ pip install --upgrade pip
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
Traceback (most recent call last):
File "/usr/bin/pip", line 7, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pip", line 10, in
from pip._internal.main import main
ModuleNotFoundError: No module named 'pip._internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pip", line 17, in
from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pip", line 20, in
from pip import main
ImportError: cannot import name 'main' from 'pip' (unknown location)
And from dnf
:
-shellsession
# dnf install wireshark
Traceback (most recent call last):
File "/usr/bin/dnf", line 61, in
from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'
Now, call me naive, but I thought one of the rationales for virtual environments was to be able to use different python versions with a particular program.
As to what happened to my dnf
, I have no clue, but I don't know how to fix it.
Bryan Zimmer
(11 rep)
Feb 2, 2023, 11:12 PM
• Last activity: Jan 16, 2025, 03:13 PM
3
votes
2
answers
1148
views
Should I keep all Python libraries only in the virtual environment?
I am working on Debian Stable Linux (12.9) and it is otherwise working very well. I am also using Python3 for small data analysis tasks. I have been installing Python3 libraries in virtual environment using "python3 -m pip install pkg" command. However, on checking on Synaptic package manager, I fou...
I am working on Debian Stable Linux (12.9) and it is otherwise working very well. I am also using Python3 for small data analysis tasks. I have been installing Python3 libraries in virtual environment using "python3 -m pip install pkg" command. However, on checking on Synaptic package manager, I found that Pandas and Numpy libraries/packages are installed from Debian repository and hence system-wide. Should I remove them from system and install them in virtual environment instead? I am worried that removing them from the system may break the system itself. Thanks for your insight.
rnso
(323 rep)
Jan 12, 2025, 05:18 AM
• Last activity: Jan 12, 2025, 01:59 PM
0
votes
0
answers
16
views
Linux -Debian 12 virtual OS. while installing pip3 requirements for python packages I got this error in my Debian terminal.?
I was installing this directory brute forcing tool dirsearch ```git clone https://github.com/maurosoria/dirsearch.git --depth 1```. in my debian 12 linux virtual OS. while Installing ```pip3 install dirsearch```. I encountered following error in my terminal. ```Installing collected packages: typing-...
I was installing this directory brute forcing tool dirsearch
clone https://github.com/maurosoria/dirsearch.git --depth 1
. in my debian 12 linux virtual OS. while Installing install dirsearch
. I encountered following error in my terminal.
collected packages: typing-extensions, soupsieve, requests-toolbelt, PySocks, pycparser, psycopg-binary, ntlm_auth, mysql-connector-python, Jinja2, defusedxml, colorama, charset_normalizer, psycopg, cffi, beautifulsoup4, cryptography, pyspnego, pyopenssl, requests_ntlm
WARNING: The script normalizer is installed in '/home/david/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pyspnego-parse is installed in '/home/david/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Jinja2-3.1.4 PySocks-1.7.1 beautifulsoup4-4.12.3 cffi-1.17.0 charset_normalizer-2.0.12 colorama-0.4.6 cryptography-43.0.0 defusedxml-0.7.1 mysql-connector-python-9.0.0 ntlm_auth-1.5.0 psycopg-3.2.1 psycopg-binary-3.2.1 pycparser-2.22 pyopenssl-24.2.1 pyspnego-0.11.1 requests-toolbelt-1.0.0 requests_ntlm-1.3.0 soupsieve-2.6 typing-extensions-4.12.2
david@debian:~/dirsearch$ cd dirsearch
.
david9240
(1 rep)
Aug 20, 2024, 03:14 PM
4
votes
1
answers
900
views
Pin package version with pipx to prevent its upgrade
I would like to pin specific package version installed using `pipx` and prevent its upgrade. E.g. I have installed package: $ pipx install somepackage==2.0.0 Then after upgrade it will be updated to the latest version: $ pipx upgrade-all Is it possible to upgrade only packages installed without spec...
I would like to pin specific package version installed using
pipx
and prevent its upgrade.
E.g. I have installed package:
$ pipx install somepackage==2.0.0
Then after upgrade it will be updated to the latest version:
$ pipx upgrade-all
Is it possible to upgrade only packages installed without specified version?
anlar
(4357 rep)
Aug 6, 2024, 08:06 PM
• Last activity: Aug 6, 2024, 08:43 PM
59
votes
7
answers
97767
views
Recommended way of installing python packages on Arch
What's the recommended way of installing python packages on Arch? Searching for them on the AUR and installing them from there (or create a `PKGBUILD` file to make a package yourself) or using `pip`? I started off by installing stuff from pacman and the AUR and don't know if it would be wise to mix...
What's the recommended way of installing python packages on Arch? Searching for them on the AUR and installing them from there (or create a
PKGBUILD
file to make a package yourself) or using pip
?
I started off by installing stuff from pacman and the AUR and don't know if it would be wise to mix with pip
packages.
Nils Werner
(3794 rep)
May 19, 2013, 01:10 PM
• Last activity: Aug 5, 2024, 05:31 PM
-1
votes
1
answers
2871
views
Command not found despite having just installed it?
As you can see in the screenshot below, I install a command (it's a wrapper for a program called qsiprep), and then try running it, but it says it's not installed...any ideas as to what is happening? I believe it may have something to do with my Python bin not being on the path. That's all I could f...
As you can see in the screenshot below, I install a command (it's a wrapper for a program called qsiprep), and then try running it, but it says it's not installed...any ideas as to what is happening?
I believe it may have something to do with my Python bin not being on the path. That's all I could find on the net for searching this problem up. But I'm not exactly sure what it means...I can run python just fine, is the python bin separate from python?
Edit: the output from `find / -name 'qsiprep-container' is
find: ‘/lost+found’: Permission denied
find: ‘/usr/src/evdi-5.2.14’: Permission denied
find: ‘/snap/core18/1705/etc/ssl/private’: Permission denied
find: ‘/snap/core18/1705/root’: Permission denied
find: ‘/snap/core18/1705/var/cache/ldconfig’: Permission denied
and many similar messages, all ending in "Permission denied." What should I be looking for here?
If I instead append the command with sudo, only one line is output:
find: ‘/run/user/1000/gvfs’: Permission denied

James Ronald
(153 rep)
Jun 29, 2020, 12:45 AM
• Last activity: Jul 1, 2024, 09:05 AM
-1
votes
1
answers
822
views
How can I install pip on FreeBSD?
I was trying to install python and pip on my FreeBSD 15.0 server. It seems like I've successfully installed python. Now I have both Python3.9 and Python 3.11. However, I can't find and package called "pip" or "python-pip". I've also tried package name "python311-pip", "python3-pip" and "py311-pip"....
I was trying to install python and pip on my FreeBSD 15.0 server. It seems like I've successfully installed python. Now I have both Python3.9 and Python 3.11. However, I can't find and package called "pip" or "python-pip". I've also tried package name "python311-pip", "python3-pip" and "py311-pip".
How can I install pip?
Gordon Zhang
(9 rep)
Jun 16, 2024, 01:03 AM
• Last activity: Jun 16, 2024, 03:42 AM
0
votes
1
answers
174
views
Python package installation using pip
I use Python both from Jupyter Notebook as well as directly from the terminal. My Python version is 3.10.12. I install packages both from the terminal (using `pip install `) as well as from the notebook (using `!pip install `). Mistakenly, I have also installed some packages earlier with `sudo` as w...
I use Python both from Jupyter Notebook as well as directly from the terminal. My Python version is 3.10.12.
I install packages both from the terminal (using
pip install
) as well as from the notebook (using !pip install
). Mistakenly, I have also installed some packages earlier with sudo
as well. As a result, I have versions of the same package available at multiple places: at /home/username/
as well as inside /usr/lib/python3/dist-packages,
. Note that, I didn't have any environment created as well. So I think all the packages that I have externally involved are messed up among the system packages. As a result, I am facing conflicts and sometimes installed packages are not being found in most of the cases from inside Jupyter Notebook.
My question is:
. How to clean this mess up?
. Can someone please provide the instructions to be followed from the beginning after installing Python?
Doi
(23 rep)
May 7, 2024, 11:14 AM
• Last activity: May 7, 2024, 03:21 PM
0
votes
2
answers
1169
views
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 `. Therefore, I install new python packages using `pipx` which works well. **Question:** The packages that have already been installed using `...
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
. Therefore, I install new python packages using pipx
which works well.
**Question:** The packages that have already been installed using pip
don't work as they were working before. For example, I had installed pdfCropMargins
using pip
and have used it extensively before upgrading to Bookworm.
After the upgrade, I get the following error:
pdf-crop-margins -a 5 pgfmanual.pdf
Traceback (most recent call last):
File "/home/vrgovinda/.local/bin/pdf-crop-margins", line 5, in
from pdfCropMargins.pdfCropMargins import main
ModuleNotFoundError: No module named 'pdfCropMargins'
As per my understanding, I guess that pipx
is now managing the python packages and is expecting the modules in some other location.
Am I right? If yes, how to resolve this issue?
If No, What is the reason for this error and how to resolve this issue?
Thanks in advance.
vrgovinda
(349 rep)
Aug 24, 2023, 12:44 AM
• Last activity: May 5, 2024, 11:55 AM
0
votes
1
answers
397
views
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 about determining what files need to be downloaded, downloading...
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 about determining what files need to be downloaded, downloading them and installing them once they're on the isolated machine?
Notes:
* I'd rather get a Python-version-independent answer, but if it is version-dependent, let's assume Python 3.6 or later.
* This question sounds the same, but it's actually about installing pip istelf.
einpoklum
(10753 rep)
Apr 2, 2024, 03:58 PM
• Last activity: Apr 3, 2024, 02:15 AM
Showing page 1 of 20 total questions