expression, returning the Unicode string list
2. Ipython
It is recommended to use Ipython to run scrapy Shell on the official website, so I try to install it. Because my python environment was previously configured via Conda (see previous article), it is convenient to install Ipython via Conda
Conda install-c Conda-
Scrapy, a Python-based web crawler framework that crawls information from the Web, is a good way to get data. So I want to install the next look.
Go to its official website, install the introduction page
There are 3 kinds of loading method, one is from Pip, one is compiled from source, one is from Conda
According to the previous knowledge, PIP is already integrated in the Python Package management tool, the most simple and clear, ignoring the webs
Write a program, open 3 threads, the IDs of the 3 threads are a, B, C, each thread prints its own ID on the screen 10 times, the output must be displayed in the order of ABC, such as: Abcabc .... recursion in turn.Use conditional variables to implement:#include #include #include Static pthread_mutex_t Mtx=pthread_mutex_initializer;Static pthread_cond_t CondA;Static pthread_cond_t condb;Static pthread_cond_t Condc;void* Threada (void *arg){int a = 10;w
Python3 fails to install caffe in anaconda, and python3caffe
Python and Python3 are both languages.
0x00 import caffe FAILED The environment is Ubuntu 16 cuda 8.0 NVIDIA 361.77 Anaconda2. Caffe was unavailable yesterday:
>>> import caffeTraceback (most recent call last): File "
All kinds of tossing are invalid. After Anaconda is reinstalled, the error disappears,import caffeSuccessful.
0x01 import FAILED again after "$ conda install opencv" After
Anaconda is a Python release for scientific computing that supports Linux, MAC, Windows, and Python packages that contain a number of popular scientific calculations and data analysis.The most tedious of Python learning is the management of different versions and libraries, and Anaconda is managing all versions as packages (including Conda).Can go to Tsinghua's open source mirror station to download, https://mirrors.tuna.tsinghua.edu.cn/anaconda/archi
newly created environment, in the right window, see which packages have been installed, not installed, select all, and then find, follow, for example, according to the Spyder you need
amp;amp;amp;amp;amp;lt;img src= "Https://pic2.zhimg.com/v2-7cd2c79e7d3b6955c01903a0e193e829_b.png" Data-rawwidth= "685" data-rawheight= "388" class= "Origin_image zh-lightbox-thumb" width= "685" data-original= "https:// Pic2.zhimg.com/v2-7cd2c79e7d3b6955c01903a0e193e829_r.png "amp;amp;amp;amp;amp;gt;
(using Google and Baidu to solve).4. Installing Cudnn6.0On the Nivida developer website, find the CUDNN download page:? https://developer.nvidia.com/rdp/cudnn-download?, select Download Cudnn v6.0 (April 27, 2017 ), "CuDNN v6.0 Library for Linux" in for CUDA 8.0 ":After downloading the installation is very simple, is extracted and then copied to the corresponding system Cuda path:tar -zxvf cudnn-8.0-linux-x64-v6.0.tgzsudo cp cuda/include/cudnn.h /usr/local/cuda/include/sudo cp cuda/lib64/libcud
Today the main preparation is the Python programming environment anacondaAnaconda is a Python release for scientific computing that integrates a number of third-party libraries for scientific computing in Python, while providing package management and environmental management capabilities to easily resolve multiple versions of Python coexistence, switching, and third-party package installation issues. Support runs under Linux, Windows, and MacOS.Anaconda uses command/tool
My computer did not install a dual system, so decided to install a tensorflow in the virtual machine, the following is the installation process:1. Installing Anaconda2 for LinuxThe official website under the words very slowly, to the Tsinghua Mirror website, I last article has the websiteInstallation: Bash anaconda2.shNext, you can choose whether to create a virtual environment, create the words Conda create-n tensorflow python=2.7 to create a virtual
First, install the Anaconda1. DownloadFor: https://www.anaconda.com/download/#linux2. Install the anaconda and execute the command:Bash ~/downloads/anaconda3-5.1.0-linux-x86_64.sh3. The configuration path is displayed during the installation processprefix=/home/jsy/anaconda2/4. After installation, running Python is still the python information of Ubuntu, you need to set the environment variable5. In the terminal input $sudo gedit/etc/profile, open the profile file6. Add a line at the end of the
"from sqlalchemy import create_engine"
Then, open Anaconda Prompt and execute the command:
conda install -c anaconda mysql-connector-python
Mysql-connector-python is successfully installed. Reference: how do I get mysql to work with python 3.6 in anaconda ide (spyder )?
As a result, I began to happily test whether the database can be successfully connected.
Open PyCharm and go to "Tools" ---> "Python console" on the menu bar to open the Python Con
problem in a separate, separable way. The central dispatch system keeps our heads clear.
History
A long time ago, I wrote into a link to Blaze's article, and then I was immediately silent. This is because the old implementation method (before the network method) is difficult to extend or maintain, and is not ready to enter its golden period.
I am very satisfied with this network. Unexpected applications often run normally, and into projects are now ready to enter their golden phase. Into works
Yesterday want to run a machine learning code, in the WIN10 system to configure the day of the Python environment, is really a headache, ready to write a blog to help the next need to configure the Environment brothers.1. Download AnacondaAccording to yesterday's experience, found that Anaconda is really useful. : https://www.anaconda.com/download/I'm under the 64-bit.After the good is installed, the installation process is very simple, here will not write, but the suggestion is to add to the en
[Scrapy] Use Anaconda to build the running environment of scrapy. Officially recommended method ., Anacondascrapy
1. Recommended official documents.
2. When most people use the framework, install pywin32 and openssl to build the running environment of scrapy. However, in such an environment, various problems may occur, such as problems with the downloaded version and openssl installation.
In addition, Official Versions later do not support such environment setup methods.
3. annaconda has integr
from start to end, and nothing else needs to be installed.
2. Download and install anaconda
First to the https://www.continuum.io/downloads to download anaconda, the current version of python2.7 and python3.5 versions, download the corresponding version, the corresponding system of anaconda, it is actually a sh script file, about 280M.
This series uses Windows 7 + python3.5 as an example. Therefore, we download the version in the red box:
Name: Anaconda3-2.4.1-Windows-x86_64.exe
Is an executab
Enter continue
Agree, he'll tell you where the installation is.
Installation complete, reminding you to add environment variables (Vscode can choose to install)
This is the pre-installation Python default environment
# Follow the prompts to add environment variablesecho ' Export path= '/home/dnt/anaconda3/bin: $PATH ' >> ~/.BASHRC
# UpdateSOURCE ~/.BASHRC
This is the current environment variable file (remember that you need to set up, and now do not need to "vscode als
appearsC:\Anaconda2; C:\Anaconda2\Scripts; C:\Anaconda2\Library\bin;If this path does not appear in path, manually add these three paths to the pathIf the environment is configured correctly, enter Python--version in cmd and the following message appears(3) Some ordersTo view the Python app packages that have been installed: Conda list2. Installing MinGWAdaconda2.0.1 before the version comes with MinGW, but the later version does not have MinGW, need
Install tf1.0 and tf1.5 in Anaconda environment --- py2.7
@ Wp20181030
Environment: ubuntu18.04, anaconda2. In ubuntu, python2.7.15 (default) and python3.6.5 are installed in advance ,.....
Here, we useAnaconda 2(Install it on your own ).Py2.7 and py3.5Environment,InstallTf1.0 and tf1.5, As follows:
Scenario 1: Install tf1.0 in py2.7.
# (1) create a test_py2 Environment [py2 + tf1.0]Conda create-n # (2) activate the test_py2 environment for later useS
Ubuntu 16.04 LTS Installation MinicondaDownloadMiniocnda bash file download link https://conda.io/miniconda.html, I chose 64-bit Python version 3.6 (miniconda3-latest-linux-x86_64.sh);InstallationEnter the directory where the miniconda3-latest-linux-x86_64.sh is located, terminal run$ bash miniconda3-latest-linux-x86_64. SHDepending on the Setup wizard, you can set the installation path and environment variables, I choose the default settings, so you can basically be a fool-type installation.Tes
1. Why Choose Anaconda?Anaconda solving Python use pain pointsPython works but the headache is that the package manages different versions of the Python issue, especially in the Windows environment.2. What is Anaconda?The anaconda features a powerful and convenient package management and environmental management function that solves the pain points used by Python.Anaconda is a Python release for scientific computing that supports Linux, MAC, Windows, and provides package management and environme
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.