Category : pyenv

When I try to import pytorch, I get this error: Traceback (most recent call last): File "/Users/Username/Documents/hello_test.py", line 1, in <module> import torch ModuleNotFoundError: No module named ‘torch’ [Finished in 36ms with exit code 1] [cmd: [‘python3’, ‘-u’, ‘/Users/Username/Documents/hello_test.py’]] [dir: /Users/Username/Documents] [path: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin] I’ve seen some other posts saying path is not needed and such, ..

Read more

I have used python 3.9 installed with homebrew and virtualenv. I recently switched to pyenv and pyenv-virtualenv, and created virtual env. pyenv virtualenv 3.6.8 py36 But activating the virtual env does not change the python3 path. (py36) ➜ mmini-batch git:(main) (py36) ➜ mmini-batch git:(main) ✗ which python3 /usr/local/bin/python3 With virtualenv, activating the venv changes python ..

Read more

I am wondering why the wrong version is selected here. Here is some information: ✦ ❯ which python3 /usr/bin/python3 ~/ds/test-pyenv ✦ ❯ python3 -V Python 3.8.10 ~/ds/test-pyenv ✦ ❯ pyenv versions system * 3.10.0 (set by /home/bebop/.pyenv/version) 3.9.9 ~/ds/test-pyenv ✦ ❯ pyenv local pyenv: no local version configured for this directory ~/ds/test-pyenv ✦ ❯ pyenv ..

Read more

So first I installed pyenv with brew install pyenv. After trying to install virtualenvs unsuccessfully I installed virtualenv with brew install pyenv-virtualenv. I noticed that there was no folder named ~/.virtualenvs so I made one and ran the command export WORKON_HOME=~/.virtualenvs. I ran the steps: export PATH=/Users/<myusername>/.pyenv/shims:$PATH pyenv install 3.10.1 pyenv global 3.10.1 pyenv rehash ..

Read more

I created a new virtual environment via this command python3 -m venv test_v4 I check that in my activate file that this config is correct /Users/user/PycharmProjects/test-job/test_v4 I then check correct pip is in fact activated /Users/user/PycharmProjects/test-job/test_v4/bin/pip But when I run the pip install with multiple requirements file I get this error ERROR: Command errored out ..

Read more