当前位置:网站首页>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边栏推荐
- Alibaba testers use UI automated testing to achieve element positioning
- MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
- 多模輸入事件分發機制詳解
- 企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
- 【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
- heatmap.js图片热点热力图插件
- 实战模拟│JWT 登录认证
- Jekins initialization password not found or not found
- 看腾讯大老如何做接口自动化测试
- Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
猜你喜欢

The concept and application of hash table

How does wincc7.5 SP1 find variables and their positions through cross indexing?

Some suggestions for interface design

Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)

render函数与虚拟dom

Advantages of RFID warehouse management system solution

See how Tencent does interface automation testing

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

阿里测试师用UI自动化测试实现元素定位

实操自动生成接口自动化测试用例
随机推荐
Advantages of RFID warehouse management system solution
[1200. Différence absolue minimale]
接口設計時的一些建議
测试用例 (TC)
How does the computer save web pages to the desktop for use
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??
实战模拟│JWT 登录认证
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
tcp为啥是三次握手和四次挥手
Explication détaillée du mécanisme de distribution des événements d'entrée multimodes
idea配置标准注释
Alibaba testers use UI automated testing to achieve element positioning
强化学习-学习笔记2 | 价值学习
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
电脑共享打印机拒绝访问要怎么办
Foxit pdf editor v10.1.8 green version
Idea plug-in
记一次重复造轮子(Obsidian 插件设置说明汉化)
HMS Core 机器学习服务
What if win11u disk refuses access? An effective solution to win11u disk access denial