Can caffe be installed correctly by some one-step way instead of make? - caffe

I'm new in caffe and I have successfully installed caffe using make and trained several example caffe models. But I still have one question remained about its installation. Is it true that it can be installed by apt-get in ubuntu >= 17.04 mentioned in official website or conda install? I've tried these methods but get many errors when trying to build or train a model.
Did I miss some important operations after apt-get install caffe, or it just doesn't have a one-step way to install caffe? If it doesn't, I want to know the reason.
I'll appreciate it if someone can give your opinions about my questions.

Related

General Requirements for EF Core Versus Pomelo.EntityFrameworkCore.MySql

I am confused about several things to configure mysql with entity framework.
I saw the mysql documentation and they say i have to install MySql.EntityFrameworkCore 6.0.x and the connector/net, but, in some projects and videos i watched they just install Pomelo.EntityFrameworkCore.MySql.
So, my question is, can i install Pomelo.EntityFrameworkCore.Mysql and omit the instalation of Mysql.EntityFramework and the connector (connector/net)?
Thanks a lot in advanced!
I tried to understand this by my own but, i can not find information about that.

Mysql Connector 8.0 and Python 3.8

I am using Windows 10. I have python 3.8.2 32 bit installed. I am trying to use mysql-installer-web-community-8.0.20.0.msi the connector for Python. The connectors are grayed out and not available. The error message says Python 32-bit not installed. I see old threads claiming you need Python 3.4. The documentation here: https://dev.mysql.com/doc/connector-python/en/connector-python-versions.html claims this will work with Python 3.8.2. Do I need a different MySql installer? If not, what am I doing wrong?
Thanks,
Scott
I am not sure why I was using the MySQL installer to install libraries for Python. In hind-sight, that doesn't make sense. Use pip to install the drivers like
$ pip install mysql-connector-python
# or
$ python pip install mysql-connector
# or for >= Python 3.9
$ pip install mysqlclient
It is not entirely clear what the difference is, but, the first of the three solved the problem.
I faced similar issue while working with MySQL 8.0.18 with Python 3.8 on Windows 10 64 Bit Machine.
And I used the following workaround -
Ensured that all the installers used were 64-Bits installers for My SQL and Python since my machine is Windows 10 64-bit machine.
Ensured that Python Connector for MySQL supported the corresponding python version from https://insidemysql.com/category/mysql-development/connectors/python/ Incase of issues or lack of information downgraded MySql by minor version.
Downloaded independent MSI for Connector from - dev.mysql.com/downloads
Manually installed the downloaded Connector MSI.
Hopefully this information will help you troubleshoot your issue as well by using corresponding 32-bit versions.
If your CPU architecture is 64 bit then be sure that you download MySQL Connector 64 bit version. 32 bit installers would also work but sometimes occurs minor errors. Also MySQL Connector Python requires Python to be in the system’s PATH. Installation fails if python cannot be located. Add python.exe path to System PATH varible. So that MySQL connector can find the execution file.
It is sadly known that MYSQL has low compatibility with python.
For example, I have stepped into this issue while trying to install mysql-python (a terrible one!) and this other issue while using mysqlclient.
There are a lot of python connectors for mysql, you can try some and see one by one if they work. I would recommend pymysql.
However, I would recommend you to use a Postgresql db with python, it really works like charm, and if you want to have a local DBMS/GUI/workbench to work on it, you can use PgAdmin.
I am not sure why I was using the MySQL installer to install libraries for Python. In hind-sight, that doesn't make sense. Use pip to install the drivers like
$ pip install mysql-connector-python
# or
$ python pip install mysql-connector
It is not entirely clear what the difference is, but, the first of the two solved the problem.
Adarsh

Installation of Caffe in COLAB

I want to use caffe in Google colab for experiment purpose, and my understanding is that i need to setup and install caffe every time i open python notebook in every runtime. This is very hard and time consuming because caffe takes lot of time to install and sometimes fails to install.
So i wanted to know if i am doing something wrong or is that the way how colab runtime works?
I would like to know of any other alternative platform for free which i can use if i need to setup caffe every time i use colab. I want to use Alex net pre tained caffe model
And moreover i wasted last 2 complete days setting up caffe locally on windows 10 machine, which by the way still not working, i am really getting sick of this caffe.
On Colab you can install the pre-compiled Caffe using
!apt install caffe-cpu
For GPU runtime, you can use caffe-cuda as well.
See instruction here.
is that the way how colab runtime works?
Yes it is!
To have persistent data you have to save your notebook to your drive:
File/Save a copy in Drive

Removing msql-libs using yum removes many critical applications

I'm trying to delete msyql 5.1 and install mysql 5.7 on Centos 6.9 However when I enter
"yum remove mysql-libs-5.1.73-8.el6_8.x86_64"
it shows a whole slew of applications such as crontab, chrome, redhat-lsb-core, postfix and many others that will be deleted because they have a dependency on it.
From googling, I saw there is a "swap" option, but can I do this for each application? Do both the old and the new MySql libraries have to be installed?
Another option is to leave the old dependency there, and install the new one. But it seems like this could throw off the mysql install...it might somehow find the old dependency - or the existing apps might find the new dependency.
A third option is to re-install all the deleted applications, but figuring out how to install mysql was tricky enough. How do I know which ones are critical or not, for one thing? I definitely need crontab and chrome. The other "redhat-lsb" onese look important. Also postfix.
Any ideas on how to approach this?
To avoid issues such as this, CentOS/Redhat has provided another way to get latest packages of MySQL, PHP, Python etc.. through Software Collections(SCL).
Using SCL you can have multiple versions of MySQL running on the same server without any conflict or dealing with dependency.
https://wiki.centos.org/AdditionalResources/Repositories/SCL
https://www.softwarecollections.org/en/scls/rhscl/rh-mysql57/

Where's the development package's documents?

Recently I want to do some development tasks for MySQL.
I'm in Ubuntu 14.04, and I install the libmysqlclient-dev package already.
I know I can google some tutorials to learn how to use it.
But I wondered that is there any official documentation attacked in the package itself? If it is, where and how can I find it?