this post was submitted on 04 Jan 2025
9 points (90.9% liked)
Steam Deck
15155 readers
1548 users here now
A place to discuss and support all things Steam Deck.
Replacement for r/steamdeck_linux.
As Lemmy doesn't have flairs yet, you can use these prefixes to indicate what type of post you have made, eg:
[Flair] My post title
The following is a list of suggested flairs:
[Discussion] - General discussion.
[Help] - A request for help or support.
[News] - News about the deck.
[PSA] - Sharing important information.
[Game] - News / info about a game on the deck.
[Update] - An update to a previous post.
[Meta] - Discussion about this community.
Some more Steam Deck specific flairs:
[Boot Screen] - Custom boot screens/videos.
[Selling] - If you are selling your deck.
These are not enforced, but they are encouraged.
Rules:
- Follow the rules of Sopuli
- Posts must be related to the Steam Deck in an obvious way.
- No piracy, there are other communities for that.
- Discussion of emulators are allowed, but no discussion on how to illegally acquire ROMs.
- This is a place of civil discussion, no trolling.
- Have fun.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No module named pip
is usually because I have Python earlier than 3.9ish and the vast majority of recipes expect Python 3.9 or later.A virtual environment that removes access to
pip
certainly isn't working as desired.Here's some things your outputs tell me:
activate
script looks fine, on a casual read. (One of the problems we have ruled out is an empty activate file.)Having ruled out an empty activate file, I would check on what shell is running. Your activate script expects
bash
- a classic - but your SteamDeck terminal could default to something else.I would also try tossing a
3
at the end of the Python and pip commands. In some situations it can help a missing command be found.Try these:
Okay so I wiped the .venv that VSCode made again and this time ran the venv creation using
python3 -m venv venv
. It's working with command line now but not within VSCode (running into the same issue that I had before but in reverse, so VSCode isn't recognizing pip or other installed modules like markdown that I added in command line).This is starting to feel like maybe a difference in how VSCode handles the virtual environment vs the command line. When I create the venv in one it breaks the other
Edit: Yeah idk what VSCode is up to. I uninstalled, remade the venv with Konsole, and installed PyCharm instead. Commands through Konsole and the PyCharm terminal are all working as expected now.
Thank you for the help!
If it's any consolation, this is why I don't use VSCode at work. I got sick of trying to figure out what it was playing at with regards to virtual environments. PyCharm is my go-to.
You're very welcome! I've had that issue with VSCode. I tend to create my venv outside of VSCode and force VSCode to use it. I've had issues Usually because VSCode is very particular about where the venv folder can be (it really wants it in the root of the current open folder).
All that said, everyone I know with a PyCharm licence likes it better than VSVcode anyway.
Have fun! Don't hesitate to reach out if you get stuck.