Forums

Error pip installing packages

hi, I try to install packages from requirements.txt in a virtualenv i created in a bash console, but it returns me an error :

(apenv) 14:09 ~ $ pip install -r requirements.txt                                                                                                                                                                   Looking in links: /usr/share/pip-wheels
Processing /opt/conda/conda-bld/bottleneck_1657175564434/work
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/conda/conda-  bld/bottleneck_1657175564434/work'

How can i solve this issue? Thanks

What do you have in your requirements.txt?

I am getting the same error when trying the same thing.

Could you also post the contents of your requirements.txt?

Hi , here is the content of my requirements.txt :

Bottleneck==1.3.5
Brotli==1.0.9
certifi==2022.12.7
click==8.0.4
cloudpickle==2.0.0
contourpy==1.0.5
cycler==0.11.0
dash==2.7.0
dash-bootstrap-components==1.2.1
dash-bootstrap-templates==1.0.7
dash-daq==0.5.0
Flask==2.1.3
Flask-Compress==1.13
fonttools==4.25.0
gunicorn==20.1.0
itsdangerous==2.0.1
Jinja2==3.1.2
joblib==1.1.1
kiwisolver==1.4.2
llvmlite==0.39.1
MarkupSafe==2.1.1
mkl-fft==1.3.1
mkl-random==1.2.2
mkl-service==2.4.0
munkres==1.1.4
numba==0.56.4
numexpr==2.8.4
numpy==1.22.3
packaging==21.3
pandas==1.4.3
pip==22.2.2
plotly==5.9.0
ply==3.11
pybase64==1.2.1
pyparsing==3.0.9
PyQt5-sip==12.11.0
python-dateutil==2.8.2
pytz==2022.1
scikit-learn==1.1.3
scipy==1.9.3
setuptools==65.5.0
shap==0.41.0
sip==6.6.2
six==1.16.0
slicer==0.0.7
tenacity==8.0.1
threadpoolctl==2.2.0
toml==0.10.2
tornado==6.2
tqdm==4.64.1
Werkzeug==2.0.3
wheel==0.37.1

Never mind. I fixed my issue. I had an extremely large requirements.txt file, created using pip freeze > requirements.txt, with many things that I think were unnecessary. I created a much smaller version using the pipreqs library, and now I was able to install everything in my new requirements.txt file as usual with pip install -r requirements.txt.

@anoack -- great, glad to hear that you got it working!

@Dataisbeautiful -- thanks for the details. Is the error you're getting exactly the same as the one that @anoack? If not, could you let us know what it is?

Hi, the posted error message is mine!

Ah, sorry! You're quire right, I misread.

How did you create the virtualenv that you're working in -- the one with the name apenv?

i pip installed them one by one, only the ones not included in pythonanywhere.

Do you remember the command you run to create the virtual environment itself?

I used mkvirtualenv.