当前位置:网站首页>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
边栏推荐
- jekins初始化密码没有或找不到
- Android原生数据库的基本使用和升级
- Summary of the mistakes in the use of qpainter in QT gobang man-machine game
- 【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
- MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
- Function analysis and source code of hash guessing game system development
- 分析伦敦银走势图的技巧
- MySQL - database query - use of aggregate function, aggregate query, grouping query
- What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
- Pytorch---使用Pytorch实现LinkNet进行语义分割
猜你喜欢
伦敦银走势图分析的新方法
Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
剑指 Offer II 80-100(持续更新)
多模輸入事件分發機制詳解
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
hash 表的概念及应用
[server data recovery] a case of RAID5 data recovery stored in a brand of server
js 3D爆炸碎片图片切换js特效
NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
Jmeter 之压测入门
随机推荐
接口设计时的一些建议
WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?
仿ps样式js网页涂鸦板插件
Hash quiz game system development how to develop hash quiz game system development (multiple cases)
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
6月“墨力原创作者计划”获奖名单公布!邀您共话国产数据库
记一次重复造轮子(Obsidian 插件设置说明汉化)
Vue cleans up the keepalive cache scheme in a timely manner
TweenMax表情按钮js特效
Jiuqi ny8b062d MCU specification /datasheet
The concept and application of hash table
【1200. 最小绝对差】
How to solve the problem that win11 cannot write the value to the registry key?
word中插入图片后,图片上方有一空行,且删除后布局变乱
From automation to digital twins, what can Tupo do?
Go notes (1) go language introduction and characteristics
分析伦敦银走势图的技巧
工厂从自动化到数字孪生,图扑能干什么?
LeetCode 7. Integer inversion
Summary of the mistakes in the use of qpainter in QT gobang man-machine game