Hands-On Machine Learning with Scikit-Learn and TensorFlow


| Chapter 2: End-to-End Machine Learning Project



Download 26,57 Mb.
Pdf ko'rish
bet34/225
Sana16.03.2022
Hajmi26,57 Mb.
#497859
1   ...   30   31   32   33   34   35   36   37   ...   225
Bog'liq
Hands on Machine Learning with Scikit Learn Keras and TensorFlow

48 | Chapter 2: End-to-End Machine Learning Project


6
We will show the installation steps using pip in a bash shell on a Linux or macOS system. You may need to
adapt these commands to your own system. On Windows, we recommend installing Anaconda instead.
7
You may need to have administrator rights to run this command; if so, try prefixing it with 
sudo
.
tem’s packaging system (e.g., apt-get on Ubuntu, or MacPorts or HomeBrew on
macOS), install a Scientific Python distribution such as Anaconda and use its packag‐
ing system, or just use Python’s own packaging system, pip, which is included by
default with the Python binary installers (since Python 2.7.9).
6
 You can check to see if
pip is installed by typing the following command:
$ pip3 --version
pip 18.0 from [...]/lib/python3.6/site-packages (python 3.6)
You should make sure you have a recent version of pip installed. To upgrade the pip
module, type:
7
$ pip3 install --upgrade pip
Collecting pip
[...]
Successfully installed pip-18.0
Creating an Isolated Environment
If you would like to work in an isolated environment (which is strongly recom‐
mended so you can work on different projects without having conflicting library ver‐
sions), install virtualenv by running the following pip command:
$ pip3 install --user --upgrade virtualenv
Collecting virtualenv
[...]
Successfully installed virtualenv
Now you can create an isolated Python environment by typing:
$ cd $ML_PATH
$ virtualenv env
Using base prefix '[...]'
New python executable in [...]/ml/env/bin/python3.6
Also creating executable in [...]/ml/env/bin/python
Installing setuptools, pip, wheel...done.
Now every time you want to activate this environment, just open a terminal and type:
$ cd $ML_PATH
$ source env/bin/activate
While the environment is active, any package you install using pip will be installed in
this isolated environment, and Python will only have access to these packages (if you
also want access to the system’s site packages, you should create the environment

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   30   31   32   33   34   35   36   37   ...   225




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish