ImportError: cannot import name ‘UnencryptedCookieSessionFactoryConfig‘ from ‘pyramid.session‘
Cannot from session name import ImportError
2023-09-14 09:05:45 时间
问题描述
在jetson nx上安装apex的时候,直接使用pip install apex命令安装的,调用时出现如下错误
from predictor import FeatureExtractionDemo
File "/home/shuyuan/yolov5-master/./fast_reid/demo/predictor.py", line 16, in <module>
from fastreid.engine import DefaultPredictor
File "/home/shuyuan/yolov5-master/./fast_reid/fastreid/engine/__init__.py", line 6, in <module>
from .train_loop import *
File "/home/shuyuan/yolov5-master/./fast_reid/fastreid/engine/train_loop.py", line 14, in <module>
from apex import amp
File "/home/shuyuan/anaconda3/envs/shuyuan/lib/python3.8/site-packages/apex/__init__.py", line 13, in <module>
from pyramid.session import UnencryptedCookieSessionFactoryConfig
ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location)
解决方法
卸载原先安装的,然后执行如下命令:
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir ./
相关文章
- Maven项目报错:The type javax.validation.Payload cannot be resolved. It is indirectly referenced from req
- 【错误记录】Android Studio 中编写 Gradle 编译脚本时没有 Groovy 代码提示 ( Cannot find declaration to go to )
- ORA-01072: cannot stop ORACLE; ORACLE not running ORACLE 报错 故障修复 远程处理
- ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_SIZE ORACLE 报错 故障修复 远程处理
- ORA-19804: cannot reclaim string bytes disk space from string limit ORACLE 报错 故障修复 远程处理
- ORA-23476: cannot import from string to string ORACLE 报错 故障修复 远程处理
- ORA-23642: Cannot switch to checkpoint mode (value “string”, string parameter string) ORACLE 报错 故障修复 远程处理
- ORA-26677: string downstream capture process string cannot proceed ORACLE 报错 故障修复 远程处理
- ORA-30503: system triggers cannot have a REFERENCING clause ORACLE 报错 故障修复 远程处理
- ORA-00262: current log string of closed thread string cannot switch ORACLE 报错 故障修复 远程处理
- ORA-00320: cannot read file header from log string of thread string ORACLE 报错 故障修复 远程处理
- ORA-64138: Cannot drop groups from an XMLIndex whose internal table has been indexed using Oracle Text. ORACLE 报错 故障修复 远程处理
- ORA-01187: cannot read from file string because it failed verification tests ORACLE 报错 故障修复 远程处理
- ORA-01931: cannot grant string to a role ORACLE 报错 故障修复 远程处理
- ORA-12032: cannot use rowid column from materialized view log on “string”.”string” ORACLE 报错 故障修复 远程处理
- ORA-12997: cannot drop primary key column from an index-organized table ORACLE 报错 故障修复 远程处理
- ORA-15232: cannot advance diskgroup compatibility due to offline disks ORACLE 报错 故障修复 远程处理
- plsqldeveloper命令行Cannot SET AUTOTRACE 开启执行计划失败详解数据库
- 在Eclipse中配置Tomcat时,出现Cannot create a server using the selected type错误详解程序员