1

My old code project's process environment is python2.7, I bought a new Mac M1 days ago, however, after install conda by miniforge, I found it that only supports python3,and virtualenv is so on, anybody help?

merv
  • 67,214
  • 13
  • 180
  • 245
bai
  • 21
  • 1
  • 5
  • 4
    It looks the upgrade of your project to python 3 is long delayed/overdue. – buran Oct 12 '21 at 07:30
  • It seems that your proposal is indeed the best – bai Oct 12 '21 at 07:35
  • Have you tried installing Python 2 any other way…? E.g. http://brew.sh? – deceze Oct 12 '21 at 07:44
  • Do you mean that the problem occurred by original Python(Mac's own python2.7)? I have always feel that the problem caused by M1, ARM 64 – bai Oct 12 '21 at 11:53
  • 1
    Conda alone won't solve this because Python 2 was sunset prior to M1, so there are no native builds. Instead, you'll have to go through Rosetta 2 (Apple's x86_64 emulator) or Docker or similar. – merv Oct 12 '21 at 17:28
  • Use [pyenv](https://github.com/pyenv/pyenv/). If it cant be installed normally, try running Terminal in x86 compatibility mode. – yedpodtrzitko Oct 12 '21 at 17:37

0 Answers0