1

On my new M2 Mac, I am having a tough time setting up my environment.

Within Conda,

which -a python
python: aliased to usr/bin/python3
opt/homebrew/anaconda3/envs/venv/bin/python

which -a pip
/opt/homebrew/anaconda3/envs/venv/bin/pip

None of my pip installed modules in my env (conda activate venv) are accessible within python

ModuleNotFoundError: No module named...

Any ideas?

coder_bob
  • 33
  • 6
  • 1
    use `python3 -m pip` where python is from your conda – sahasrara62 Aug 02 '23 at 04:05
  • I get ```Usage: /opt/homebrew/anaconda3/envs/venv/bin/python3``` – coder_bob Aug 02 '23 at 17:20
  • Should this help? [Python pip installation on Mac is not working](https://stackoverflow.com/questions/63538152/python-pip-installation-on-mac-is-not-working) – Miguel Gargallo Aug 08 '23 at 22:48
  • I'm glad you solved your problem but it looks like your question has several significant copy/paste errors. For example, `python: aliased to usr/bin/python3`. Where is the leading slash? Those sorts of errors make it less likely anyone will take the time to help you. – Kurtis Rader Aug 09 '23 at 00:15

1 Answers1

0

Uninstalling python and pip from within conda, and reinstalling them again fixed the problem

miloserdow
  • 1,051
  • 1
  • 7
  • 27
coder_bob
  • 33
  • 6