当前位置:网站首页>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边栏推荐
- Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
- Advantages of semantic tags and block level inline elements
- HWiNFO硬件检测工具v7.26绿色版
- Play the music of youth
- idea恢复默认快捷键
- nmap扫描
- Function analysis and source code of hash guessing game system development
- 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
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- The concept and application of hash table
猜你喜欢

分析伦敦银走势图的技巧

Hwinfo hardware detection tool v7.26 green version

TweenMax表情按钮js特效

Summary of the mistakes in the use of qpainter in QT gobang man-machine game

WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?

网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??

Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)

Advantages of RFID warehouse management system solution

剑指 Offer II 80-100(持续更新)
![[observation] Lenovo: 3x (1+n) smart office solution, releasing the](/img/e4/f660461c42eb81ab8c94fd87503a83.png)
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
随机推荐
GVM use
RFID仓库管理系统解决方案有哪些功能模块
黄金k线图中的三角形有几种?
Leetcode+ 81 - 85 monotone stack topic
Vue cleans up the keepalive cache scheme in a timely manner
Automatic generation of interface automatic test cases by actual operation
【1200. 最小绝对差】
Cdga | six principles that data governance has to adhere to
卷积神经网络在深度学习中新发展的5篇论文推荐
字节测试工程师十年经验直击UI 自动化测试痛点
托管式服务网络:云原生时代的应用体系架构进化
nmap扫描
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
HWiNFO硬件检测工具v7.26绿色版
实操自动生成接口自动化测试用例
How to solve the problem that win11 cannot write the value to the registry key?
哈希表、哈希函数、布隆过滤器、一致性哈希
LeetCode 8. 字符串转换整数 (atoi)
Record the online bug solving list (unfinished to be continued 7/4)
Hash quiz game system development how to develop hash quiz game system development (multiple cases)