Comments (3)
This is a known behavior of pip. This post has many different ways to solve this problem: https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
from docker-node.
Is it ok to close this issue then since there are ways to solve this?
from docker-node.
I encountered a similar problem as reported in [GitHub Issue #2010]
#7 [ 3/10] RUN pip install openpyxl --user
#7 1.604 error: externally-managed-environment
.
.
.
------
Dockerfile:5
--------------------
3 | # Install python framework along with its dependency packages
4 | RUN apk add g++ make python3 py3-pip
5 | >>> RUN pip install openpyxl --user
6 |
7 | # Create app directory
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install openpyxl --user" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.
Solution
To resolve this issue, I made the following changes in the Dockerfile:
# Install python framework along with its dependency packages
RUN apk add g++ make python3 py3-pip
# Create a virtual environment and install required packages
RUN python3 -m venv ~/pyvenv --system-site-packages
RUN ~/pyvenv/bin/pip3 install openpyxl
from docker-node.
Related Issues (20)
- Latest docker build breaks node-gyp in node-18 HOT 16
- Add note to DockerHub indicating Alpine images rely on experimental and unofficial-builds HOT 4
- Nodejs container version node:16.14.2-slim suddenly failed to start suggestion fix "chmod 1000:0 /root/.npm" HOT 2
- node:20.11.0 The RUN command not work while running the Dockerfile. HOT 4
- All images are ubuntu jammy
- Node 20.10 to 20.11 regression using stream readables, discovered using google cloud sdk HOT 1
- node 21.6.1 HOT 1
- Heads up on security release pland for 6 Feb 2024 HOT 3
- docker stop not triggering shutdown signal [v20] HOT 1
- CVE-2023-42282 An issue in NPM IP Package when scanning with trivy HOT 5
- Minor change in unofficial-builds workflow HOT 6
- 20.11.1-bullseye-slim: no matching manifest for linux/arm64/v8 in the manifest list entries
- 20.11.1-bullseye-slim: no matching manifest for linux/arm64/v8 in the manifest list entries HOT 1
- node:lts-alpine apk not found HOT 2
- Major bug was fixed in [email protected] concerning nodejs images. HOT 3
- node:lts-slim has vulnerability - CVE-2023-42282 - due to not updated npm ip package HOT 2
- `libc6-compat` not on alpine anymore? HOT 3
- Major bug was fixed in [email protected] concerning nodejs images. Node has new version with the fixed NPM. HOT 1
- Update Docker Images to support Alpine Edge release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-node.