why does python 3.13 ignore the venv i activated five minutes ago? 馃

pippythonvenv37 replies 路 738 views 路 started
  1. respectfully disagree, i tried that and it made venv worse... exact same thing happened to my mac last month

    27 3 helpful
  2. ok so watch out for package name vs import name. pip install python-dotenv gives you import dotenv, psycopg2-binary gives import psycopg2, PyYAML gives import yaml :/ if you installed a similarly named but dfiferent package the import will fail even though pip is happy. worked for me anyway 馃し

    0 0 helpful
  3. been there man in Docker, the classic mistake is installing into one stage of a multi-stage build and copying only the app into the final stage... either copy teh venv over (COPY --from=build /opt/venv /opt/venv and put /opt/venv/bin on PATH) or install in teh final stage. good luck man!

    1 1 helpful
  4. ok so exact same thing happened to my desktop last month fingers crossed 馃

    0 2 helpful
  5. page 1 lets gooo. reading this at 2am instead of sleeping, no regrets

    27 2 helpful
  6. honestly just reset the BIOS and save yourself the pain

    3 4 helpful
  7. hmmm pro tip: write down what u change. i didnt and had to redo pip from scratch. ok this thread just saved my weekend good luck man!

    6 1 helpful
  8. print sys.path at startup in the failing context. if u see a different site-packages than teh one where pip put the package, you have your answer in one log line.

    5 1 helpful
  9. yeahhh this.. 馃敟 sooo much this lmk how it goes

    40 3 helpful
  10. came here to say exactly this. have u checked your dotenv settings? mine were reset after an update

    5 0 helpful

Reply to this topic

Sign in or create an account to reply.