Pytorch currently supports the platform has Linux and OSX, on the Pytorch website each platform provides Conda, Pip, source three kinds of installation methods, but also can be based on the GPU for CUDA installation, here to ubuntu14.04 for installation learning.
1. Anaconda Installation ConfigurationThe installation process references my previous Anaconda+tensorflow+theano+keras installation blog.Due to wall problems, installing pytorch with
://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/, which can support windows, Anaconda version of Linux and Mac. When downloading, pay attention to the number of system bits, x86 is 32 bits, x86_64 is 64 bits.installation command:
$ bash anaconda2-4.3. 1-linux-x86_64.sh
2. Create and install the ANACONDA3 environmentDo not need to create a new environment, run the following code directly, where py3k is the new environment name:
$ bash anaconda3-4.1. 1-linux-x86_64.sh-b-
issues related to using Anaconda and Pip
I use Anaconda as the management tool for Ipython environment Anaconda download slow way Conda Environment Management change PIP source to domestic mirror anaconda download speed is slow
Run on the command line using the Tsinghua mirror server:
Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
C
, after the installation of Anaconda, basically put our common part of the package installed, but after all, only a small number of installed (we can go to the official website to see which packages are installed), there is a part of the need for us to install.View installed packages We can enter the PIP list at the command prompt or the Package Manager Conda (Conda list) that comes with Anaconda.5.1 Pip or
, the installation succeeds:
Close the command line.
(5) installation Mingw and libpython conda install MinGW Libpython can, currently libpython has supported python3.5 No more configuration python3.4 mingw ctl+c anaconda
Conda config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
Conda Config--set show_channel_ur
Start-All Programs-anaconda3-anaconda PromptConda config--add channels Https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config--set show_channel_ URLs yesconda config--remove channels defaults #这里删除了默认源, otherwise it is always downloaded from the official website and then timed out. Conda create-n py27 Python=2.7conda config? #查看可以使用的命令conda config--
information.[Email protected]:~/workspace$ ipython Python 2.7.9 | Anaconda 2.2.0 (64-bit) | (Default, APR 14 2015, 12:54:25) Type "Copyright", "credits" or "license" for more information. IPython 3.0.0--an enhanced Interactive Python.anaconda are brought to your by Continuum analytics.please check out:http:/ /continuum.io/thanks and https://binstar.org ...The Anaconda band Conda is an open source Package Manager that can be used
reference URL:1, http://www.jianshu.com/p/169403f7e40c2, http://blog.csdn.net/qq_29883591/article/details/526644781. Anaconda(Here are some words of saliva, you can understand a little bit, do not have to too much discretion?? )?? Anaconda is a python release that uses Python and many of the most commonly used packages (Python open source package) to be packaged directly to support Windows, Linux, and MacOS systems. And there is a Conda (open source
NumPy in Python 2.7.3, Python 3.6.4 Different versions of the application
1, install Anaconda, install the default Python environment created when Anaconda, the environment name is root, the corresponding Python version is 3.6.4
2, using NumPy, error printing print, Python 3.6 printing to add parentheses.
To facilitate numpy testing, create a Python 2.7.3 environment and use NumPy in python2.7.3.
3, create the use environment for Python 2.7.3 in Anaconda.
c:\users\lenovo>
\ Scripts and D: \ software \ Anaconda3 \ Library \ bin, click OK.
Enter the command line and enter python. If any information appears, the installation is successful:
Close the command line.
(5) install mingw and libpython. Open the command line and enter conda install mingw libpython. Currently, libpython supports python3.5, so you do not need to configure the python3.4 environment. NOTE: If mingw installation is slow, you can run ctl + c and e
libraries-Method 1 (primary method): Use the PIP command-Method 2: Integrated installation method-Method 3: File Installation method1.pip Installation Method Pip is the official Python installation tool that can be used on Windows, OS, and Linux platforms. The following is a common PIP directive.1.pip Install 2.pip Install-u 3.Pip Uninstall 4.pip Download 5.pip Show 6.PIP Search 7.PIP List-Lists the third-party libraries that are currently installed on the system 2. Integrated installation M
Tags: port environment settings Tun ROM right-click Alt import Share pictureIn the Anaconda, MySQLdb was sealed in Mysql-python.So first run Conda install Mysql-python in Anaconda prompt. (Note to right-click the Administrator)Sometimes there is a connection problem because it is a foreign site, you can set up in the environment Tsinghua to the mirror path.After installation, the direct import mysqldb is OK.Set up a domestic mirrorIf you need to insta
1. Download and install Anaconda1.1 downloadDownload the Linux version from Anaconda official website (https://www.continuum.io/downloads)https://repo.continuum.io/archive/(Recommended python3.5)1.2 InstallationCD ~/downloadssudo bash anaconda2-5.0.1-linux-x86_64.sh (download the corresponding version of Python2.7 here)Ask if you want to add the Anaconda bin to the user's environment variable and select yes!Installation is complete.2. Install tensorflow2.1 set up TensorFlow operating environment
The following small series for everyone to bring a TensorFlow installation and Jupyter notebook configuration method. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
TensorFlow using Anaconda in Ubuntu installation method and Jupyter notebook run directory and Remote access configuration
Install Anaconda under Ubuntu
Bash ~/file_path/file_name.sh
After the license appears, press CTRL + C to skip and yes
Python Keras module 'keras. backend' has no attribute 'image _ data_format ', keraskeras. backendProblem:
When the sample program mnist_cnn is run using Keras, the following error occurs: 'keras. backend' has no attribute 'image _ data_format'
Program path https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py
The python conda environment used is the carnd-term1 of the udacity self-driving course
Fault Section:
if K.image_data_format() ==
First, after the installation of Anaconda to update.Description: For operations in a Windows environment, refer to the specific books in the Linux environment.1. Go to cmd command linePerform1 Conda Update Conda 3 Conda Update Anaconda 4 Conda Install MKL1 Conda install pyli
python install." Turns out they also depend in the Reticulate package, so Install.packages ("reticulate") if you had not already.Step 1: Installed Anaconda3 to C:/users/user/anaconda3 (from https://www.anaconda.com/download/)Step 2: Opened "Anaconda Prompt" from Windows Start menu. First, to ' Create an ' environment ' specifically for use with TensorFlow and Keras in R called ' Tf-keras ' with a 64-bit vers Ion of Python 3.5 I typed:Conda create-n Tf-keras python=3.5 Anaconda... and then after
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.