当前位置:网站首页>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边栏推荐
- Managed service network: application architecture evolution in the cloud native Era
- acwing 3302. Expression evaluation
- 看腾讯大老如何做接口自动化测试
- Summary of the mistakes in the use of qpainter in QT gobang man-machine game
- MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
- 实操自动生成接口自动化测试用例
- Stack: how to realize the judgment of valid brackets?
- Record the online bug solving list (unfinished to be continued 7/4)
- go语言笔记(2)go一些简单运用
- Android原生数据库的基本使用和升级
猜你喜欢

测试员的算法面试题-找众数

网络命名空间

《动手学深度学习》(三) -- 卷积神经网络 CNN

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

JS卡牌样式倒计时天数

HWiNFO硬件检测工具v7.26绿色版

Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"

How to solve the problem that win11 cannot write the value to the registry key?

Jmeter 之压测入门

Hwinfo hardware detection tool v7.26 green version
随机推荐
Idea configuration standard notes
Quelques suggestions pour la conception de l'interface
Golang中UTF编码和字符集
Pytorch---使用Pytorch实现LinkNet进行语义分割
How does win11 search for wireless displays? Win11 method of finding wireless display device
E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
测试用例 (TC)
What if the brightness of win11 is locked? Solution to win11 brightness locking
Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)
How to solve the problem that win11 cannot write the value to the registry key?
Go notes (3) usage of go language FMT package
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
Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
多模输入事件分发机制详解
网络命名空间
Jekins initialization password not found or not found
JS closure
Foxit pdf editor v10.1.8 green version
colResizable.js自动调整表格宽度插件