You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the uv tool to create my venv and also to install ipython into it (via uv pip install ipython). When starting ipython I see the following warning:
C:\Users\jburnett1\Code\coordinates data analysis\.venv\Lib\site-packages\IPython\core\interactiveshell.py:937: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
warn(
But if I examine the location of the IPython module it's definitely inside the currently activated venv:
import IPython
IPython
Out[4]: <module 'IPython' from 'C:\\Users\\jburnett1\\Code\\coordinates data analysis\\.venv\\Lib\\site-packages\\IPython\\__init__.py'>
import sys
sys.executable
Out[6]: 'C:\\Users\\jburnett1\\Code\\coordinates data analysis\\.venv\\Scripts\\python.exe'
I did find this very old issue which seemed to have a similar root cause, but the fix doesn't apparently work with the way that uv creates venvs & installs packages into them.
My version info:
sys.version
Out[7]: '3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]'
IPython.__version__
Out[8]: '8.22.2'
This is w/ uv version 0.1.6.
The text was updated successfully, but these errors were encountered:
Checking further, it appears that this issue only shows up when launching the python console within the PyCharm IDE (I'm running the latest Community Edition). When I launch IPython from the terminal I do not see the warning.
I used the
uv
tool to create my venv and also to install ipython into it (viauv pip install ipython
). When starting ipython I see the following warning:But if I examine the location of the IPython module it's definitely inside the currently activated venv:
I did find this very old issue which seemed to have a similar root cause, but the fix doesn't apparently work with the way that
uv
creates venvs & installs packages into them.My version info:
This is w/ uv version 0.1.6.
The text was updated successfully, but these errors were encountered: