#知りたいこと
Pythonで多重ループを抜けるためにgotoを使いたいのですが、gotoのパッケージをインストールしようとするとPycharmでエラーが出ます。エラー内容は以下の通りです。解決案にPythonのバージョンについて書いているのですが、Pythonのバージョンは悪くないと思うのですが、何をすればgotoを使えるのでしょうか。
実行されたコマンド: pip install goto エラーの発生: SyntaxError: invalid syntax Proposed solution: Make sure that you use a version of Python supported by this package. Currently you are using Python 3.6. Command output: Collecting goto Downloading https://files.pythonhosted.org/packages/24/b5/12814d5951e82253e9936eccac77c2f058cb2dcee1c4219efef82408df5a/goto-0.1.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\proto\AppData\Local\Temp\pycharm-packaging\goto\setup.py", line 3, in <module> import goto File "C:\Users\proto\AppData\Local\Temp\pycharm-packaging\goto\goto\__init__.py", line 10, in <module> from . import goto File "C:\Users\proto\AppData\Local\Temp\pycharm-packaging\goto\goto\goto.py", line 86 print '<<< [%02i] %s %s' % (_req_cnt, 'POST' if post else 'GET', url) ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\proto\AppData\Local\Temp\pycharm-packaging\goto\ You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。