Failed to create a working virtual environment for Python 3.4

I installed Python 3.4.2 and Virtualenv 12.0.5 in my Linux Mint 17.1

Then I tried to create: $ virtualenv venv

And also using --clear and / or -p / usr / bin / python3.4, always getting messages:

Using base prefix '/usr' New python executable in venv/bin/python3 Also creating executable in venv/bin/python ERROR: The executable venv/bin/python3 could not be run: [Errno 13] Permission denied

Another attempt: $ pyvenv-3.4 venv

It made no errors when creating, but in the venv / bin file python3.4 is a symbolic link to / usr / local / bin / python 3.4. Then, when I activate and install any lib using pip or pip3, try importing it, I get an error: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'anymoduledownloaded'

I always used virtualenv in Python 2.X and never got this kind of error. Any thoughts on what I'm doing wrong?

Thank!!

======= ======= EDITED

This is the output of my sections (fdisk -l):

Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    98707455    49352704   83  Linux
/dev/sda2       303507456  3890644991  1793568768    5  Extended
/dev/sda3   *    98707456   303507455   102400000    7  HPFS/NTFS/exFAT
/dev/sda4      3890644992  3907028991     8192000   82  Linux swap / Solaris
/dev/sda5       303509504  3890644991  1793567744    7  HPFS/NTFS/exFAT`

And also my fstab:

<file system> <mount point>   <type>  <options>       <dump>  <pass>
-> was on /dev/sda1 during installation
UUID=a38f9c6d-3cd9-4486-b896-acbc6182ec61 /               ext4    errors=remount-ro 0       1
-> swap was on /dev/sda4 during installation
UUID=efad7b53-79a8-4230-8226-9ca90c68ea9d none            swap    sw              0       0`
+4
2

, ? , , ? , IMO, , python , .

, /etc/fstab exec , NTFS, :

<file system> <mount point>   <type>  <options>       <dump>  <pass>
-> was on /dev/sdaX during installation
UUID=<uid_of_NTFS> /     ntfs    auto,user,exec,nodev,rw,errors=remount-ro 0       1
+1

, bash script . , , 133:

/path/to/python/bin/python3.4 /path/to/python/bin/pyvenv /path/to/venv

, python venv.

/path/to/venv/bin/pip install django # or whatever

Linux Mint , Python 3.4. , , this answer, , , Python 3.4:

apt-get install build-essential libssl-dev openssl

Python 3.4 pip. , , , readline .


  • root, , venv
  • script .
  • , script

venvs , script, , script , github, . , , //-.

+4

Source: https://habr.com/ru/post/1570370/


All Articles