・Anacondaを使う
Anacondaを試しました。
割りと簡単にインストール、Visual Studio Codeの起動やライブラリのインストールができました。
しかし、pyautoguiだけインストールが上手くいきません。
以下のコマンドでインストールを試みるも以下のエラーが出ました。
$ conda install -c conda-forge pyautogui
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0.*, but conda is ignoring the .* and treating it as 1.9.0
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0.*, but conda is ignoring the .* and treating it as 1.8.0
done
Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pyautogui
Current channels:
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
Just a moment...
and use the search bar at the top of the page.
仕方なく、以下のコマンドでインストールしました。
pip3 install pyautogui
Anacondaはライブラリを指定すれば一気にインストールしてくれるので相当管理が楽になりました。
今後は、Anaconda + Visual Studio Codeで開発していこうと思います。