Installing Pycharm, Python Tensorflow, Cuda and cudnn in Ubuntu 16.04
- 十二月 01, 2019
The version compatibility across the OS and these packages is a
nightmare for every new person who tries to use Tensorflow. In here, I
record the successful procedure to install everything listed in the
title of this note.
3. How to use the bluez and hcitool
What to check?
To run gpu using tensorflow under Pycharm IDE, here is a checklist:
1, test whether CUDA and cudnn run correctly.
2. test whether CUDA could pick up your GPU device.
3, make sure whether tensorflow from Pycharm can see Cuda and cudnn
星期日, 02. 九月 2018 11:58下午 – beautifulzzzz
To uninstall PyCharm installed by the above described method, use the
command below to uninstall the community edition of PyCharm:
sudo apt-get remove pycharm-community
To remove the professional version, use the command below:
sudo apt-get remove pycharm
Afterward, use the command below to remove the PPA from the sources
sudo add-apt-repository –remove ppa:mystic-mirage/pycharm
That’s all you need to do. I hope this tutorial helped you toinstall
PyCharm in Ubuntu Linux. Any questions or suggestions are always
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.7
3.2 hcitool scan for bluetooth devices
Before start scanning make sure that your bluetooth device is turned on
and not blocked, you can check that with the rfkill command:
sudo rfkill list
If the bluetooth device is blocked (soft or hard blocked), unblock it
with the rfkill command again:
sudo rfkill unblock bluetooth
Bring up the bluetooth device with hciconfig command and start scanning,
make sure the target device’s bluetooth is on and It’s discoverable:
sudo hciconfig hci0 up hcitool scan
Wait few moment to complete the hcitool scan or hcitool lescan, the
results will be something like bellow:
Here 00:1A:7D:DA:71:0A is the bluetooth MAC address and SHEN-PC is the
name of the bluetooth device, i.e. an PC.
hcitool lescan will forever scan ble devices, if use
ctrl+c stop it, it will show error(ref to LINKS
Set scan parameters failed: Input/output error
Open a terminal and use the following commands:
sudo add-apt-repository ppa:mystic-mirage/pycharmsudo apt-get update
To install the community edition of PyCharm, use the command below. It
will download data of around 120 MB.
sudo apt-get install pycharm-community
To install the professional edition of PyCharm, use the command below.
It will download data of around 160 MB.
sudo apt-get install pycharm
Bluez is the default Bluetooth protocol stack on Linux. It should be
present and installed on your Linux distribution. If not, building and
installing from source is not too difficult:
- Download the latest stable source release of Bluez from here. Unzip
the compressed file you downloaded.
- Install the headers and libraries required for Bluez compilation:
3.1 setup bluetooth service
Start the bluetooth service and enable automatic startup, assuming
you’re using systemd as the init daemon:
sudo systemctl start bluetooth.service sudo systemctl enable bluetooth.service
3.3 bluetooth service discovery
Now we have the bluetooth MAC address of the target device, use the
sdptool command to know which services (like DUN, Handsfree audio) are
available on that target device.
sdptool browse 28:ED:6A:A0:26:B7
You can also use the interactive
bluetoothctl tool for this purpose.
If the target device is present, you can ping it with l2ping command,
requires root privilege:
➜ bluez-5.50 sudo l2ping 94:87:E0:B3:AC:6F Ping: 94:87:E0:B3:AC:6F from B8:27:EB:8E:CC:51 (data size 44) ... 44 bytes from 94:87:E0:B3:AC:6F id 0 time 53.94ms 44 bytes from 94:87:E0:B3:AC:6F id 1 time 77.12ms 44 bytes from 94:87:E0:B3:AC:6F id 2 time 38.63ms 44 bytes from 94:87:E0:B3:AC:6F id 3 time 46.13ms 44 bytes from 94:87:E0:B3:AC:6F id 4 time 59.96ms 5 sent, 5 received, 0% loss
So, bluetooth service discovery is useful to determine the type of the
device, like if it’s a bluetooth mp3 player or it’s a keyboard.
to check the version of your Ubuntu. If you want to dual-boost OS from
window10, like what I did, there is another note teach you how to do the
dual-boost. The following passages assume you have already had your
Ubuntu 16.04 installed correctly.
- 近水楼台先得月 微软Windows 8已知音信汇总
- 澳门新葡亰app：Windows7 测验版二零一八年初文告 重启“专门的学问版”
- cmd 命令小解
- utf-8-用pip下载gensim现身exception 求大佬们教导！！！
- 二〇一〇 Windows 硬件工程大会（WinHEC）
- 喇叭吹响：微软为Windows 7 奠定根基 – Windows7之家，Win7之家
- IT之家应用正式上架Win8商店 – Windows7之家，Win7之家
- 澳门新葡亰appWindows Defender漏洞防护：降低针对下一代恶意软件的攻击面