当前位置:网站首页>Google collab trample pit
Google collab trample pit
2022-07-04 22:51:00 【Jay_ Mapp】
1. In use , First transfer data into Google Drive in , And then in Colab Middle link Google Colab
from google.colab import drive
drive.mount('/content/drive')
2. Go to your own folder :
stay colab in , Just do this directly
cd The name of the folder you want to enter /
3. install Anaconda To configure the required installation package :
!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 Next Anaconda Virtual environment creation 、 Activate
Virtual environment creation :
!conda create -n Virtual environment name python=3.7
Activate the virtual environment :
!source cnonda activate A virtual environment
After the virtual environment is activated , There is no need to carry out other operations , After activating the virtual environment , Want to run python The file will run in this virtual environment
There are three common errors in installing various dependent libraries :
(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
边栏推荐
- LOGO特训营 第五节 字体结构与设计常用技法
- PHP short video source code, thumb animation will float when you like it
- Redis入门完整教程:客户端通信协议
- 【lua】int64的支持
- MySQL Architecture - logical architecture
- Logo Camp d'entraînement section 3 techniques créatives initiales
- 10 schemes to ensure interface data security
- PostgreSQL server programming aggregation and grouping
- Redis入门完整教程:事务与Lua
- 都说软件测试很简单有手就行,但为何仍有这么多劝退的?
猜你喜欢
页面关闭前,如何发送一个可靠请求
Duplicate ADMAS part name
LOGO特訓營 第一節 鑒別Logo與Logo設計思路
Redis入门完整教程:Bitmaps
【机器学习】手写数字识别
SPSS installation and activation tutorial (including network disk link)
Wake up day, how do I step by step towards the road of software testing
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
浅聊一下中间件
sobel过滤器
随机推荐
攻防世界 MISC 进阶 glance-50
Challenges faced by virtual human industry
蓝队攻防演练中的三段作战
Easy to use app recommendation: scan QR code, scan barcode and view history
【OpenGL】笔记二十九、抗锯齿(MSAA)
【机器学习】手写数字识别
Deployment of JVM sandbox repeater
Logo special training camp section III initial creative techniques
攻防世界 MISC 进阶区 Ditf
[Lua] Int64 support
集群的概述与定义,一看就会
Attack and defense world misc advanced grace-50
Redis入门完整教程:GEO
剑指 Offer 68 - I. 二叉搜索树的最近公共祖先
Why is Dameng data called the "first share" of domestic databases?
Domestic database chaos
Analog rocker controlled steering gear
Interview essential leetcode linked list algorithm question summary, whole process dry goods!
Microservices -- Opening
环境加密技术解析