<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear Rajdeep,</p>
<p>It seems that the update of setuptools happened with python 2
instead of 3. You can force pip to use a specific Python
interpreter by calling it as 'python -m pip' instead of simply
calling 'pip', where 'python' should be the specific interpreter
that you want to install something on.</p>
<p>So in this case, you can try:</p>
<tt>sudo python3 -m pip install -U setuptools</tt><br>
<tt>python3 -m pip install --user PATH_TO_Z2PACK</tt>
<p>Best regards,</p>
<p>Dominik<br>
</p>
<br>
<div class="moz-cite-prefix">On 16.04.2018 06:42, Rajdeep Banerjee
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+YfB7T8ZMYWeQK5bWQMgjF7Ht=p5Vx8rJc7SzoyeoOaYHQGEQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>Dear sir,<br>
</div>
I tried following your suggestion and found the
following:<br>
>> sudo pip install -U setuptools <br>
Requirement already up-to-date: setuptools in
/usr/local/lib/python2.7/dist-packages<br>
Cleaning up...<br>
<br>
</div>
It seems although I have installed python-3.5, but my default is
python-2.7. I changed the alias in bash so that calling python
will call python-3.5. But the problem persists.<br>
>> sudo python -m pip install --user
/home/rajdeep/soft/Z2Pack-master-2.1.x<br>
<br>
...<br>
<br>
<div>Downloading/unpacking fsc.export (from z2pack==2.1.1)<br>
Downloading fsc.export-1.1.0.tar.gz<br>
Running setup.py
(path:/tmp/pip_build_rajdeep/fsc.export/setup.py) egg_info for
package fsc.export<br>
error in fsc.export setup command: Invalid environment
marker: python_version < "3"<br>
Complete output from command python setup.py egg_info:<br>
error in fsc.export setup command: Invalid environment
marker: python_version < "3"<br>
<br>
<br>
</div>
<div>Please help. Thanks in advance.<br>
<br>
</div>
<div>best regards,<br>
</div>
<div>Rajdeep<br>
</div>
<div><br>
<br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Apr 14, 2018 at 10:34 PM,
Rajdeep Banerjee <span dir="ltr"><<a
href="mailto:rajdeep.jzs@gmail.com" target="_blank"
moz-do-not-send="true">rajdeep.jzs@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">Dear sir,
<div dir="auto"> thank you very much for your
suggestion, I will let you know if it works.</div>
<div dir="auto"><br>
</div>
<div dir="auto">best regards,</div>
<div dir="auto">Rajdeep</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
<div class="HOEnZb">
<div class="h5"><br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Apr 14, 2018, 8:57 PM Dominik
Gresch <<a href="mailto:greschd@phys.ethz.ch"
target="_blank" moz-do-not-send="true">greschd@phys.ethz.ch</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">Hi Rajdeep,
<div dir="auto"><br>
</div>
<div dir="auto">I think this issue might be due to
an outdated version of the 'setuptools' package
which does not recognize these environment
markers.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Can you try running </div>
<div dir="auto"><br>
</div>
<div dir="auto">'pip install -U setuptools'</div>
<div dir="auto"><br>
</div>
<div dir="auto">before installing Z2Pack?</div>
<div dir="auto"><br>
</div>
<div dir="auto">Best regards,</div>
<div dir="auto">Dominik</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">Am 14.04.2018 08:23
schrieb Rajdeep Banerjee <<a
href="mailto:rajdeep.jzs@gmail.com"
rel="noreferrer" target="_blank"
moz-do-not-send="true">rajdeep.jzs@gmail.com</a>>:<br
type="attribution">
<blockquote
class="m_-7351190661425051621m_-1923250587986364406quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>Hi,<br>
</div>
I am trying to install Z2Pack 2.1.1
(from source file). I am getting the
following error:<br>
<br>
Downloading/unpacking fsc.export (from
z2pack==2.1.1)<br>
Downloading fsc.export-1.1.0.tar.gz<br>
Running setup.py
(path:/tmp/pip_build_rajdeep/<wbr>fsc.export/setup.py)
egg_info for package fsc.export<br>
error in fsc.export setup command:
Invalid environment marker: python_version
< "3"<br>
Complete output from command python
setup.py egg_info:<br>
error in fsc.export setup command:
Invalid environment marker: python_version
< "3"<br>
<br>
------------------------------<wbr>----------<br>
Cleaning up...<br>
Command python setup.py egg_info failed
with error code 1 in
/tmp/pip_build_rajdeep/fsc.<wbr>export<br>
Storing debug log for failure in
/tmp/tmp3bth1l3g<br>
<br>
<br>
</div>
I thought it is due to python version but I
have python 3.5 as shown below:<br>
<div><br>
<br>
[rajdeep@anna: Z2Pack-master-2.1.x]:python<br>
Python 3.5.3 (default, Apr 22 2017,
00:00:00) <br>
[GCC 4.8.4] on linux<br>
Type "help", "copyright", "credits" or
"license" for more information.<br>
>>> <br>
<br>
</div>
<div>Please help. Thanks in advance!<br>
</div>
<div><br>
<br clear="all">
<div>
<div>best regards,<br>
</div>
<div>-- <br>
<div>
<div dir="ltr">Rajdeep Banerjee<br>
PhD student
<div>JNCASR, Bangalore</div>
<div>India</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Rajdeep Banerjee<br>
PhD student
<div>JNCASR, Bangalore</div>
<div>India</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>