問題タブ [python-install]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
3160 参照

python - MacOS に Python 3 の複数のバージョンをインストールする

MacOS で複数のバージョンの Python 3 を使用したいと考えています。たとえば、Python3.6 と Python3.7 が必要です。Linux を使用する場合、次のように、ソースから Python をビルドして代替インストールを作成するだけです。

  1. 特定の Python バージョンのソース tarball をダウンロードして抽出する
  2. 。/構成、設定
  3. 須藤メイク
  4. sudo make altinstall

次に、新しいバージョンの Python を にインストールしusr/local/lib/pythonx.xます。

これは Linux で完全に機能します。MacOS で複数のバージョンの Python 3 にアクセスするにはどうすればよいですか?

編集:私のユースケースをもう少し明確にするために。OS にインストールされている Python で複数のバージョンを使用しているため、異なる Python バージョンを指定するさまざまなプロジェクトでPipenvを使用できます。