I know many similar questions are there but i am having this issue in virtual env.I am tring to install pandas on my machine, I already have virtual environment in which i am tring to install pandas with pip, couple of days ago i install tensorflow that worked fine but now gives me error-
heres what is happening-
rpi@rpi:~ $ cd /var/forjupyter/jupyter
rpi@rpi:/var/forjupyter/jupyter $ source env1/bin/activate
(env1) rpi@rpi:/var/forjupyter/jupyter $ pip3 install pandas
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pandas
Using cached pandas-2.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (15.6 MB)
Requirement already satisfied: numpy>=1.23.2 in ./env1/lib/python3.11/site-packages (from pandas) (1.26.4)
Requirement already satisfied: python-dateutil>=2.8.2 in ./env1/lib/python3.11/site-packages (from pandas) (2.9.0.post0)
Collecting pytz>=2020.1
Using cached https://www.piwheels.org/simple/pytz/pytz-2024.1-py3-none-any.whl (505 kB)
Collecting tzdata>=2022.7
Using cached https://www.piwheels.org/simple/tzdata/tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Requirement already satisfied: six>=1.5 in ./env1/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)
Installing collected packages: pytz, tzdata, pandas
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/var/forjupyter/jupyter/env1/lib/python3.11/site-packages/pytz'
Check the permissions.
when i try sudo gives me error-
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Note: you may need to restart the kernel to use updated packages.
with apt install python3-pandas successful installation was done but when i try to access it in notebook on env1 pandas is not found when i try notebook on main env tensorflow is not found what can do can i import pandas to env1
thank you