当前位置:网站首页>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 .

边栏推荐
- Interview question: rendering 100000 data solutions
- 原子操作类
- Design of direct spread spectrum communication system based on FPGA (with main code)
- June 27, 2022 Daily: swin transformer, Vit authors and others said: a good basic model is the simple pursuit of CV researchers
- #27ES6的数值扩展
- LVI: feature extraction and sorting of lidar subsystem
- [issue 17] golang's one-year experience in developing Meitu
- Is flutter easy to learn? How to learn? The most complete introduction and actual combat of flutter in history. Take it away without thanks~
- ReentrantLock、ReentrantReadWriteLock、StampedLock
- 关于快速幂
猜你喜欢

Pisa-Proxy 之 SQL 解析实践

Today, Teng Xu came out with 37k during the interview. It's really a miracle. He showed me his skill

Référence forte, faible, douce et virtuelle de threadlocal

CV领域一代宗师黄煦涛教授86岁冥诞,UIUC专设博士奖学金激励新锐

反射学习总结

Using redis skillfully to realize the like function, isn't it more fragrant than MySQL?

HTTP Caching Protocol practice

sql注入原理

All you want to know about large screen visualization is here

2022-2-15 learning the imitated Niuke project - Section 5 shows comments
随机推荐
ReentrantLock、ReentrantReadWriteLock、StampedLock
数学建模经验分享:国赛美赛对比/选题参考/常用技巧
Why can't the start method be called repeatedly? But the run method can?
[issue 17] golang's one-year experience in developing Meitu
【kotlin】第二天
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
Elegant custom ThreadPoolExecutor thread pool
June 27, 2022 Daily: swin transformer, Vit authors and others said: a good basic model is the simple pursuit of CV researchers
AQS抽象队列同步器
Typescript learning materials
522. longest special sequence II / Sword finger offer II 101 Split equal sum subset
SQL parsing practice of Pisa proxy
Pisa-Proxy 之 SQL 解析实践
Handling methods for NVIDIA deepstream running delay, jamming and crash
Use GCC to generate an abstract syntax tree "ast" and dump it to Dot file and visualization
老师能给我说一下固收+产品主要投资于哪些方面?
AQS Abstract queue synchronizer
522. 最长特殊序列 II / 剑指 Offer II 101. 分割等和子集
手机号码的格式
Redis CacheClient