当前位置:网站首页>E modulenotfounderror: no module named 'psychopg2' (resolved)
E modulenotfounderror: no module named 'psychopg2' (resolved)
2022-06-27 15:33:00 【Forgotten late wind】
Hint: make sure your test modules/packages have valid Python names.
Traceback:
d:\software\python3.8\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_case\test_case.py:6: in <module>
from common.connectpostgresql import Getresult
common\connectpostgresql.py:1: in <module>
import psycopg2
E ModuleNotFoundError: No module named 'psycopg2'
I used a virtual environment , The virtual environment is equipped with psycopg2, I run the import alone psycopg2 The file of the module can run successfully , But an error is reported in the called file . Later on The local environment It is also installed in the psycopg2, Run again successfully . Is there something wrong with the virtual environment I created ? Welcome to point .

边栏推荐
- 【170】PostgreSQL 10字段类型从字符串修改成整型,报错column cannot be cast automatically to type integer
- 保留有效位数;保留小数点后n位;
- Create a database and use
- 可变参数模板 Variadic Templates
- About fast exponentiation
- 522. longest special sequence II / Sword finger offer II 101 Split equal sum subset
- AbortController的使用
- SQL parsing practice of Pisa proxy
- Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and the mobile phone can easily read literature
- Longest substring without repeated characters (Sword finger offer 48)
猜你喜欢

Pri3d: a representation learning method for 3D scene perception using inherent attributes of rgb-d data

Why can't the start method be called repeatedly? But the run method can?

#28对象方法扩展

volatile与JMM

Numerical extension of 27es6

基于SSM的Web网页聊天室系统

洛谷入门1【顺序结构】题单题解

原子操作类

Talk about redis transactions

Professor huangxutao, a great master in CV field, was born at the age of 86. UIUC specially set up a doctoral scholarship to encourage cutting-edge students
随机推荐
Abnormal analysis of pcf8591 voltage measurement data
Design of direct spread spectrum communication system based on FPGA (with main code)
16 -- 删除无效的括号
关于 SAP UI5 参数 $$updateGroupId 前面两个 $ 符号的含义
What are the characteristics of fixed income + products?
Strong, weak, soft and virtual references of ThreadLocal
Computer screen splitting method
Teach you how to realize pynq-z2 bar code recognition
AI begets the moon, and thousands of miles share the literary heart
2022-2-16 learning the imitated Niuke project - Section 6 adding comments
Maximum profit of stock (offer 63)
Design and implementation of food recipe and ingredients website based on vue+node+mysql
QT notes (XXVIII) using qwebengineview to display web pages
ReentrantLock、ReentrantReadWriteLock、StampedLock
E ModuleNotFoundError: No module named ‘psycopg2‘(已解决)
保留有效位数;保留小数点后n位;
Top ten Devops best practices worthy of attention in 2022
Design of spread spectrum communication system based on FPGA (with main code)
élégant pool de threadpoolexecutor personnalisé
Knowledge map model