You are here

installation / python versions

3 posts / 0 new
Last post
installation / python versions


I would like to install PyRosetta4 for python 3.6 on Ubuntu 16.04 64bit. For this I installed python3.6, as deafault python version was 2.7. According the installation instruction I have to use smth like

cd setup && sudo python install

Will it call python 2.7? should I expect any errors? How should I install PyRosetta properly?



Post Situation: 
Thu, 2018-06-07 00:43

Hi again!

Sorry, previous question was probably too obvious, but when trying

cd setup && sudo python3.6 install

I've got an error "OSError: Could not build the egg."

(I am trying to install PyRosetta4 for python 3.6 on Ubuntu 16.04 64bit.)

I would be grateful for your advice.


optolab@optolab-HP-Compaq-8200-Elite-SFF-PC:~/PyRosetta4$ cd setup && sudo python3.6 install
[sudo] password for optolab:
Extracting in /tmp/tmpwpu94hy9
Now working in /tmp/tmpwpu94hy9/setuptools-3.3
Building a Setuptools egg in /home/optolab/PyRosetta4/setup
Traceback (most recent call last):
  File "", line 18, in <module>
	exec(, command_ns)
  File "<string>", line 8, in <module>
  File "/tmp/tmpwpu94hy9/setuptools-3.3/setuptools/", line 12, in <module>
	from setuptools.extension import Extension
  File "/tmp/tmpwpu94hy9/setuptools-3.3/setuptools/", line 7, in <module>
	from setuptools.dist import _get_unpatched
  File "/tmp/tmpwpu94hy9/setuptools-3.3/setuptools/", line 16, in <module>
	import pkg_resources
  File "/tmp/tmpwpu94hy9/setuptools-3.3/", line 1479, in <module>
	register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
Traceback (most recent call last):
  File "", line 5, in <module>
  File "/home/optolab/PyRosetta4/setup/", line 189, in use_setuptools
	return _do_download(version, download_base, to_dir, download_delay)
  File "/home/optolab/PyRosetta4/setup/", line 141, in _do_download
	_build_egg(egg, archive, to_dir)
  File "/home/optolab/PyRosetta4/setup/", line 79, in _build_egg
	raise IOError('Could not build the egg.')
OSError: Could not build the egg.


Tue, 2018-06-19 01:35

Checking with others, it seems this typically happens when you try to build with one version of Python and install with another.

To fix it, delete the PyRosetta build directory (which can be found by re-running with --print) and then redo the installation with a single, consistent version of Python. (Use the same version for both and

Wed, 2018-08-01 15:09