Replies: 1 comment 2 replies
-
Hmm... So this issue has risen because you are installing it on your base/system-level environment. Why not install Anaconda3/Miniconda3, use Conda to initialise a virtual environment and install the packages there? It might be tedious, time-consuming and could also be hard to code in, but that ought to work since you basically are installing modules into a virtual environment. P. S. It does say in the error log that you can initialise a Python Virtual ENV for this. I bet that would work! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even tho I searched a lot for this issue online I cant seem to figure it out for code-server.
I had this Dockerfile for a while:
Since code-server 4.20.* this throws an error about pip3 installing packages:
I've tried lots of different online suggestions, but unfortunately none of them seem to be working with Code Server.
When I try to install something using 'pip install ...', it works perfectly when Code Server is up and running, but I'd really love to be able to install everything I need in the Dockerfile so that once I remove the container, all my packages are there without having to manually reinstall them each time. This was the case until 4.19.1. Also, the spacy download command relies on spacy being installed by pip already, and en_core_web_lg is a rather large package. I don't want to download it each time when deleting the container, so I was wondering if there's a way to install it in the Dockerfile?
So my question: What is the best way to install pip packages inside a dockerfile without breaking any code-server functionality.
Beta Was this translation helpful? Give feedback.
All reactions