-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use django binary that is located in the virtual environment #2027
Comments
Hey there. |
Yes I activated it. and btw I know that uv installs the packages into the virtual environment and it installs Django successfully. but the problem is when I execute the django binary and to give you a better prespective run these commands so you can know what I am facing
the output of the last command should be "5.0.2" but what I am getting is "4.2.10" |
@charliermarsh Something else I want you to keep in mind. if I created a virtual environment, activated it, and then ran |
We don't install After activating the virtual environment, is its |
Also the feature you requested is being tracked in #1207 |
@zanieb if I installed pip using uv, and yes this
the first one is the and can you please try to do this yourself. I am using just run these commands and see what is going on
what the last line gives you?? |
Unfortunately i can't reproduce the problem on WSL:
How did you install python, and what do |
@konstin I can't remember how I installed Python but I think it was using the when I activate the virtual environment the and the
this is strange btw if you look at the scripts you will notice that it uses the |
Can you try cleaning the uv cache ( |
@konstin I tried to clear the cache but I still have the same problem. I tried to use And btw I tried to delete uv bin from |
@konstin I just want to ask you about something. when I activate the virtual environment, I get this And btw I tried to run |
@konstin I am sorry for calling you several times but I just finally fixed the problem and I have no idea how it was fixed. in the |
Sorry, no idea why this makes a difference |
I have no idea also. But the question is do you know why it's "dummy" not ".venv" ?? if we just solved this, then everything will be OK. |
The prompt should only be cosmetic i.e. it's just the text that's displayed to identify the virtual environment. I also could not reproduce this on macOS — I'm not sure what's going on but it does seem specific to something in your environment. If there's something that relies on |
I'm going to close this so we can keep the issue tracker actionable, thanks for all your investigation let us know if you find out more. #1570 has more details on the default prompt value. |
For anyone having the same problem I just noticed that the problem isn't with the |
so I created a virtual environment, sourced it, and installed Django. the version that is installed globally is
4.2.10
but the version I installed in the virtual environment is the latest one5.0.2
and this is what I want to share with youand when I typed
django-admin startproject myproject .
it used django4.2.10
not5.0.2
this is uv version
What I think might be the problem is the way you are creating the virtual environment. as when I use
pip
it uses the global pip not the one in the virtual environment.What is think about the solution is to provide a way like
uv exec some-command
like other tools that will use the binaries in the virtual environment, not the global ones.And in the end, I am sorry that I can't help to solve this problem as the only thing I know about rust is how to type
Hello world
🙂The text was updated successfully, but these errors were encountered: