Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows(pipenv/pyenv_win) 環境でのセットアップで失敗してしまいます #12

Open
hoshino-git opened this issue Apr 30, 2022 · 1 comment
Assignees

Comments

@hoshino-git
Copy link

pipenv を利用してインストールしようとしていますが、下記のライブラリのインストールで失敗してしまいます。
Python 3.8.10 の環境で試しています。

■Matplotlib=3.0.3
... freetype, png の依存が必要と言われる

          freetype: no  [The C/C++ header for freetype
                    (freetype2\ft2build.h) could not be found.  You may
                    need to install the development package.]
               png: no  [The C/C++ header for png (png.h) could not be
                    found.  You may need to install the development
                    package.]

matplotlib/matplotlib#16449
→公式でもバージョンを上げて欲しいとの事なので、pipfile を 3.2.0 を指定してみた所通過できたのですが、これで対応で良いのか不安です。

■Scipy =1.2.1
… lapack/blas がないと言われる

[pipenv.exceptions.InstallError]: numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
ERROR: Couldn't install package: scipy
Package installation failed...

→スムーズな解決方法が見つからず
https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
ホイールを使いインストールをすると良いという Stackoverflow の情報見つけましたが、このアドレスのサイトから numpy, scipy のライブラリを入れる方法が良いのでしょうか…。
書籍の numpy 1.16.2、scipy 1.2.1 のバージョンに相当するファイルも見当たらず、これで良いのかが分かりません。

■Pythonのバージョン
→書籍には Python 3.8 と書かれておりますが、3.8 でも複数マイナーバージョンがあり、このバージョンも気をつけなくてはいけないのではと疑っております。

Windows での環境構築が困難に思っております。
構築出来た方はいらっしゃるでしょうか?
なるべく書籍内のサンプルがそのまま動く事を期待しており、pipfile 内のバージョンを少し上げるなどの対応をしてしまっても良いものなのか、助言頂けますと幸いです。

@massongit
Copy link
Owner

massongit commented Jul 7, 2022

@hoshino-git 対応が遅くなってしまいましたが、対応差分を作成しましたので、こちらで動作するか確認していただいても良いでしょうか?: #15

@massongit massongit self-assigned this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants