当前位置:网站首页>Google colab踩坑
Google colab踩坑
2022-07-04 19:56:00 【Jay_Mapp】
1.在使用的时候,先将数据传入Google Drive中,然后在Colab中连接Google Colab
from google.colab import drive
drive.mount('/content/drive')
2.进入到自己的文件夹下:
在colab中,直接这样做就可以
cd 想要进入的文件夹名字/
3.安装Anaconda来配置需要的安装包:
!wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
!chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
!bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local
import sys
sys.path.append('/usr/local/lib/python3.6/site-packages/')
4.Linux下Anaconda的虚拟环境创建、激活
虚拟环境创建:
!conda create -n 虚拟环境名称 python=3.7
激活虚拟环境:
!source cnonda activate 虚拟环境
虚拟环境被激活之后,就不用进行其他的操作了,激活了虚拟环境后,想要运行的python文件就会在这个虚拟环境下运行
安装各种依赖库时常会出现的错误有三个:
(1)Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nr4ydx_8/opencv-python/
!pip install --upgrade setuptools
(2)Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ud_idlo6/opencv-python/
!python -m pip install --upgrade pip
(3)ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
pip install PyYAML --ignore-installed
边栏推荐
- Foxit pdf editor v10.1.8 green version
- In the face of the same complex test task, why can the elder sort out the solution quickly? Ali's ten-year test engineers showed their skills
- 五子棋 上班摸鱼工具 可局域网/人机
- [Shenbo introduction] VI How to contact your favorite doctoral tutor
- 电脑共享打印机拒绝访问要怎么办
- LeetCode 7. Integer inversion
- 奏响青春的乐章
- 字节测试工程师十年经验直击UI 自动化测试痛点
- How does win11 search for wireless displays? Win11 method of finding wireless display device
- 记一次重复造轮子(Obsidian 插件设置说明汉化)
猜你喜欢
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
Idea restore default shortcut key
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
电脑怎么保存网页到桌面上使用
Some suggestions for interface design
Explication détaillée du mécanisme de distribution des événements d'entrée multimodes
What should I do if my computer sharing printer refuses access
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
[server data recovery] a case of RAID5 data recovery stored in a brand of server
uniapp 富文本编辑器使用
随机推荐
浏览器渲染页面过程
强化学习-学习笔记2 | 价值学习
Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
LeetCode 8. String conversion integer (ATOI)
Go notes (3) usage of go language FMT package
实操自动生成接口自动化测试用例
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
剑指 Offer II 80-100(持续更新)
【1200. 最小絕對差】
Foxit pdf editor v10.1.8 green version
基于OpenCV haarcascades的对象检测
LeetCode 7. 整数反转
Idea restore default shortcut key
阿里测试师用UI自动化测试实现元素定位
Idea case shortcut
语义化标签的优势和块级行内元素
Automatic insertion of captions in word
tcp为啥是三次握手和四次挥手
卷积神经网络在深度学习中新发展的5篇论文推荐
【1200. 最小绝对差】