python installation can't find psycopg2 ImportError

后端 未结 1 441
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 10:41

I\'m calling on psycopg2 with

import psycopg2

I get the std error

ImportError: No module named psycopg2

相关标签:
1条回答
  • 2021-01-25 11:30

    MacPorts installs its own version of Python alongside Apple's version. You can manage the active version of Python (the one that gets run when you type in python at the command line or by /usr/bin/env) by using the port select command. See this question.

    0 讨论(0)
提交回复
热议问题