今天在调试Evernote SDK时, 遇到PythonPath的问题。 查了很多资料,有说用系统环境变量添加PythonPath, 有说在注册表中的PythonPath添加新Default字段, 但是对于我来说都没有效果, 很奇怪。

最后还是在代码里显式添加sys.path才好用:


import sys
import hashlib
import binascii
import time

if "..\\lib" not in sys.path:
     sys.path.append(r"..\\lib")

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-06-10
  • 2021-11-20
  • 2021-07-01
  • 2021-12-14
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案