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

セットアップがうまくいかなかったので修正 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

makki0205
Copy link

requirements = [requirement.req.project_name for requirement in requirements]

requirements = [requirement.req.name for requirement in requirements]
に直したらなおりました。

@ervitis
Copy link
Contributor

ervitis commented Jun 29, 2016

なるほどね!pypa/pip#3307
pipアップデートしたのでもうproject_name使わない。pipの7.1.2のバージョンにはnameにも使えますか?

@makki0205
Copy link
Author

お返事遅れました。
自分は pip 8.1.2でした

@ervitis
Copy link
Contributor

ervitis commented Jul 6, 2016

うん、うん、すぐわかった。それじゃ、これを書いたら?

try:
  requirements = [requirement.req.project_name for requirement in requirements]
except AttributeError:
  requirements = [requirement.req.name for requirement in requirements]

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

Successfully merging this pull request may close these issues.

2 participants