首页 > 编程语言 >Python开发环境

Python开发环境

时间:2022-12-25 19:55:28浏览次数:52  
标签:cn Python 环境 python 开发 https edu -- docker

以下为阿里算法平台的推荐版本为:

python==3.6
tensorflow==1.13.1(cpu & gpu)
torch==1.5.0
prophet==1.0.1
cuda==10.0
tfplus==1.0.9
penrose=2.0.0

常见包安装:

Python 3.6.5

python -m pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.13.1

python -m pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple torch==1.5.0

安装包pytorch指定源和版本:

安装python 3.6

# python 3.6
export PATH=${PATH}:/Users/yonglang/anaconda3/python.app/Contents/bin
alias python="/Users/yonglang/anaconda3/python.app/Contents/MacOS/python"
alias pip="/Users/yonglang/anaconda3/python.app/Contents/MacOS/pip3"

源地址:

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

Anaconda

#anaconda地址
https://repo.anaconda.com/archive/     
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

python 3.6   <---->  Anaconda3 5.2   [推荐]

Tensorflow

https://www.tensorflow.org/install

中文使用教程:https://zhuanlan.zhihu.com/p/59507137

https://github.com/czy36mengfei/tensorflow2_tutorials_chinese

英文教程:https://github.com/Hvass-Labs/TensorFlow-Tutorials

Deepo

【深度学习环境镜像】

https://hub.docker.com/r/ufoym/deepo/#CPU

https://github.com/ufoym/deepo.git

-- cpu version --
Installation
Step 1. Install Docker.
Step 2. Obtain the all-in-one image from Docker Hub
        docker pull docker.mirrors.ustc.edu.cn/ufoym/deepo:cpu
    
    docker run -it docker.mirrors.ustc.edu.cn/ufoym/deepo:cpu bash

        exit

[Recommend]--->
docker run -it -v /Users/yonglang/PycharmProjects:/mnt  docker.mirrors.ustc.edu.cn/ufoym/deepo:cpu bash

Jupyter support

Step 1. pull the image with jupyter support

docker pull ufoym/deepo:all-jupyter

Step 2. run the image

docker run -it -p 8888:8888 -p 8022:22 --ipc=host ufoym/deepo:all-jupyter jupyter notebook --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token= --notebook-dir='/root'

然后打开:
http://localhost:8888/

上传文件:

https://blog.csdn.net/wzw2887/article/details/120469027


 

标签:cn,Python,环境,python,开发,https,edu,--,docker
From: https://www.cnblogs.com/chihaoyuIsnotHere/p/17004487.html

相关文章

  • manjaro安装gnome桌面环境
     步骤1.在运行以下教程之前,请确保我们的系统是最新的:sudopacman-Syu步骤2.在Manjaro20上安装GNOME桌面。 现在我们通过执行以下命令来安装GNOME包 ......
  • 如何使用ChatGPT来自动化Python任务
    1.概述最近,比较火热的ChatGPT很受欢迎。今天,笔者为大家来介绍一下ChatGPT能做哪些事情。2.内容ChatGPT是一款由OpenAI开发的专门从事对话的AI聊天机器人。它的目标是让A......
  • 从一道CTF题学习python字节码到源码逆向
    概述:该题来源为2022爱春秋冬季赛ezpython,难度不是很大刚好适合我这样的萌新入门题目:30LOAD_CONST1(204)3LOAD_CONST......
  • Vscode c/c++环境
    最简单的环境,用vscode插件compilec/c++,只支持单个文件,不能调试,插件主页很短一看就懂单个文件我比较喜欢用命令行编译和运行/调试多个文件cmake/makefile mac调试-lld......
  • python中pandas操作excel数据
    python自动化办公领域,pandas处理excel表格非常优秀,今天初次使用pandas,测试一下。#coding:utf-8importpandasaspdfile_path=r"G:\41个设备.xlsx"data=pd.read_excel......
  • J2EE 环境
    J2EE环境搭配步骤 jdk的下载与安装现在jdk用的比较广泛的版本有两个,分别是jdk1.8 jdk11属于是lts版本,我们把长期支持版本称为lts版本我们可以直接到网站上面直......
  • 推荐-centos7安装高版本python3.10
    前言如果在centos7上编译安装python3.7以上版本,ssl功能会出问题,因为python3.7以后需要更高版本的openssl支持,这样的话,就需要提前编译安装高版本的openssl,比如1.1.1系列,这......
  • 不用描述符,不算懂 Python
    在日常的编码中,我们应该使用Python的描述符,来使代码更具有单一职责原则,也就是SRP(SingleResponsibilityPrinciple)原则,如果你还没有用过描述符,那快来看看怎么用吧,不然就......
  • 【开发小技巧】015—如何使用HTML和CSS创建图像叠加悬停?
    https://www.geeksforgeeks.org/how-to-create-image-overlay-hover-using-html-css/翻译|web前端开发在本文中,我们将介绍5种不同类型的叠加层:左,右,上,下和淡入淡出。你将需......
  • 请停止在JavaScript中使用类,你将成为一名更好的开发人员
    英文| https://medium.com/javascript-in-plain-english/please-stop-using-classes-in-javascript-and-become-a-better-developer-a185c9fbede1多年来,OOP(面向对象编程)一......