当前位置:网站首页>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 .
边栏推荐
- Mathematical modeling -- analytic hierarchy process model
- How close can QA be to business code QA conducts testability transformation on business code
- Kubernetes-1.24.x feature
- Introduction and advanced MySQL (XIV)
- Shortcut key for adjusting terminal size in ROS
- 再学EXKMP(EXKMP模板)
- Arm architecture and neural network
- 逐步分析类的拆分之案例——五彩斑斓的小球碰撞
- 力扣刷题之分数加减运算(每日一题7/27)
- Alibaba Sentinel - 工作流程及原理解析
猜你喜欢

2022-07-28 study notes of group 4 self-cultivation class (every day)

Matlab learning -- structured programs and user-defined functions

mycat读写分离配置

Learn more than 4000 words, understand the problem of this pointing in JS, and handwrite to realize call, apply and bind

MYCAT read / write separation configuration

July 28, 2022 Gu Yujia's study notes

How to deploy sentinel cluster of redis

How dare you write a resume that is proficient in concurrent programming? Why do you use a two-way linked list in AQS?

3D advanced renderer: artlandis studio 2021.2 Chinese version

Design of smoke temperature, humidity and formaldehyde monitoring based on single chip microcomputer
随机推荐
后缀自动机(sam)板子 from jly
力扣刷题之数组序号计算(每日一题7/28)
ROS - create workspace
How dare you write a resume that is proficient in concurrent programming? Why do you use a two-way linked list in AQS?
CUDA GDB prompt: /tmp/tmpxft**** cudafe1.stub. c: No such file or directory.
Sanzi chess (player + computer)
Anti vulnerability · benefit from uncertainty --- management?
13_ UE4 advanced_ Montage animation realizes attack while walking
Flask的创建的流程day05-06之创建项目
C traps and defects Chapter 3 semantic "traps" 3.6 Boundary Calculation and asymmetric boundary
C traps and defects Chapter 3 semantic "traps" 3.2 pointers to non arrays
[freeswitch development practice] media bug obtains call voice flow
Plato Farm在Elephant Swap上铸造的ePLATO是什么?为何具备高溢价?
年内首个“三连跌” 95号汽油回归“8元时代“
Introduction and advanced MySQL (13)
Tencent cloud logs in with PEM
Learn more than 4000 words, understand the problem of this pointing in JS, and handwrite to realize call, apply and bind
exness:鸽派决议帮助黄金反弹,焦点转向美国GDP
Watermelon book learning Chapter 6 -- SVM
基于单片机烟雾温湿度甲醛监测设计