当前位置:网站首页>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
边栏推荐
- 五子棋 上班摸鱼工具 可局域网/人机
- Advantages of semantic tags and block level inline elements
- 记一次重复造轮子(Obsidian 插件设置说明汉化)
- [1200. Différence absolue minimale]
- 接口设计时的一些建议
- LeetCode 7. 整数反转
- Hwinfo hardware detection tool v7.26 green version
- vim异步问题
- Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
- 嵌入式TC 测试用例
猜你喜欢
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
Jiuqi ny8b062d MCU specification /datasheet
Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
LeetCode+ 81 - 85 单调栈专题
What if win11u disk refuses access? An effective solution to win11u disk access denial
Pytorch---使用Pytorch实现LinkNet进行语义分割
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Alibaba testers use UI automated testing to achieve element positioning
Idea configuration standard notes
hash 表的概念及应用
随机推荐
电脑共享打印机拒绝访问要怎么办
记一次重复造轮子(Obsidian 插件设置说明汉化)
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
go笔记(3)Go语言fmt包的用法
Après l'insertion de l'image dans le mot, il y a une ligne vide au - dessus de l'image, et la disposition est désordonnée après la suppression
acwing 3302. Expression evaluation
Hands on deep learning (III) -- convolutional neural network CNN
Redis分布式锁的实现
Jekins initialization password not found or not found
idea恢复默认快捷键
五子棋 上班摸鱼工具 可局域网/人机
[1200. Minimum absolute difference]
colResizable.js自动调整表格宽度插件
acwing 3302. 表达式求值
js 3D爆炸碎片图片切换js特效
Go language notes (2) some simple applications of go
jekins初始化密码没有或找不到
MySQL - database query - use of aggregate function, aggregate query, grouping query
强化学习-学习笔记2 | 价值学习
记一次重复造轮子(Obsidian 插件设置说明汉化)