LoginSignup
1
0

More than 5 years have passed since last update.

NameError: global name 'dot_parser' is not definedとpythonで出てきたときの対処法

Posted at

pipはインストール済みだとしますね。

NameError: global name 'dot_parser' is not defined

とエラーが出たら、pyparsingがインストールされていても、バージョンが新しいと互換性がないようです
pip uninstall pyparsing
と一旦pyparsingをuninstallしようとしますが、
[Errno 13] Permission denied: '/path/to/directory'
とでるので、
sudo chmod 777 /path/of/directory/
/pathのところはErrorでたときのpyparsingへのpathをコピーしてください。

これでもう一度pyparsingをuninstallして
pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709
pip install pydot
としませう。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0