sudo pip3 install vk - сделано
скрипт
#!/usr/bin/env python3.3
#coding=utf-8
import vk
post = vk.wall.get(domain='vk.com/pn6', count=1)
print(post)
выхлоп
funk@funk-HP-Pavilion-g6-Notebook-PC:~$ cd ~/.scripts
funk@funk-HP-Pavilion-g6-Notebook-PC:~/.scripts$ ./vk_script.py
Traceback (most recent call last):
File "./vk_script.py", line 4, in <module>
import vk
ImportError: bad magic number in 'vk': b'\x03\xf3\r\n'
funk@funk-HP-Pavilion-g6-Notebook-PC:~/.scripts$
так тоже не подхватывается
funk@funk-HP-Pavilion-g6-Notebook-PC:~/.scripts$ python3
Python 3.4.3 (default, Oct 14 2015, 20:33:09)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: bad magic number in 'vk': b'\x03\xf3\r\n'
funk@funk-HP-Pavilion-g6-Notebook-PC:~$ pip3 --version
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4)
ubuntu 14.04.4