当前位置:网站首页>Environment configuration stepping pit during colab use
Environment configuration stepping pit during colab use
2022-07-29 03:24:00 【Order anything】
Problem description : Recently, with colab Run a model , Two packages can only be configured through conda install , There is also a non binary package ( need !python setup.py install install ), When my environment is configured ,conda list I found all the bags in , but import XXX But remind me that this does not exist modle.
solve : I have been troubled by this problem for nearly a day , I'm really sad , I lay on the ground pulling Chopin ……
I tried many methods on blog , Including what restart conda Kernel activation environment , Don't pretend miniconda And refit anaconda…………
The person in charge can tell you , None of the above mentioned works well
The final solution to my problem is these two lines of code :
# hold conda The package path of the package is added to the environment
import sys
sys.path.append("/usr/local/lib/python3.6/site-packages")
The specific reason for this blog is very clear :https://www.cnblogs.com/liulunyang/p/14291526.html
Essentially colab It is not supported anaconda or miniconda This kind of environmental management , however conda Is available .
I hope to help people who have the same problems as me .
边栏推荐
- How does DataGrid export and recover the entire database data, using a single SQL file
- makefile详解
- C traps and defects Chapter 3 semantic "traps" 3.6 Boundary Calculation and asymmetric boundary
- 军品三大基线(功能基线、分配基线、产品基线)及基线包含的文件
- How close can QA be to business code Direct exposure of defects through codediff
- Precautions for using latex
- Three military product baselines (functional baseline, distribution baseline, product baseline) and the documents contained in the baseline
- 【科技1】
- Introduction and advanced MySQL (13)
- 多行文本省略
猜你喜欢
exness:鸽派决议帮助黄金反弹,焦点转向美国GDP
Learn more than 4000 words, understand the problem of this pointing in JS, and handwrite to realize call, apply and bind
Design of smoke temperature, humidity and formaldehyde monitoring based on single chip microcomputer
Calculation of array serial number of force deduction questions (daily question 7/28)
Plato Farm在Elephant Swap上铸造的ePLATO是什么?为何具备高溢价?
mysql的timestamp存在的时区问题怎么解决
Shardingsphere's level table practice (III)
[freeswitch development practice] media bug obtains call voice flow
Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
Whole process record of yolov3 target detection
随机推荐
机器学习【Numpy】
ROS - create workspace
Matlab learning -- structured programs and user-defined functions
多行文本省略
Anti vulnerability · benefit from uncertainty --- management?
Introduction to JVM foundation I (memory structure)
照片比例校正工具:DxO ViewPoint 3 直装版
Military product development process - transition phase
SAP 中国本地化内容汇总
Server operation management system
Makefile details
Shortcut key for adjusting terminal size in ROS
Does domestic ERP have a chance to beat sap?
C traps and defects Chapter 3 semantic "traps" 3.4 avoid "couple method"
Alibaba Sentinel - workflow and principle analysis
Let's talk about the summary of single merchant function modules
Rongyun real-time community solution
Shell script summary
Summary of SAP localized content in China
xxxxx