1
$\begingroup$

I'm trying to install the qiskit_textbook repository (https://github.com/qiskit-community/qiskit-textbook) and I keep getting this error

ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mb/sbqp79dx7zj7jpd6mfc1vdbh0000gn/T/pip-req-build-gqjhv69q/setup.py'"'"'; __file__='"'"'/private/var/folders/mb/sbqp79dx7zj7jpd6mfc1vdbh0000gn/T/pip-req-build-gqjhv69q/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/mb/sbqp79dx7zj7jpd6mfc1vdbh0000gn/T/pip-pip-egg-info-wn16yzlv
         cwd: /private/var/folders/mb/sbqp79dx7zj7jpd6mfc1vdbh0000gn/T/pip-req-build-gqjhv69q/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/mb/sbqp79dx7zj7jpd6mfc1vdbh0000gn/T/pip-req-build-gqjhv69q/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
$\endgroup$

1 Answer 1

1
$\begingroup$

Why are you trying to install the qiskit_textbook repository? You should install Qiskit (https://qiskit.org/documentation/install.html) and Jupyter notebook, unless you have installed them already. Then you will be able open the ipynb files in the textbook repository.

$\endgroup$
3
  • $\begingroup$ Hi. I'm trying to call this: from qiskit_textbook.tools import array_to_latex array_to_latex(final_state, pretext="\\text{Statevector} = ") $\endgroup$
    – user12457
    Jun 22, 2020 at 14:10
  • $\begingroup$ I see, sorry about that. $\endgroup$ Jun 22, 2020 at 14:18
  • $\begingroup$ Many suggests that such issue might happen if your pip is not upgraded. But I am not so sure. May be if you 'Check the logs for full command output', - it may have more directions. $\endgroup$ Jun 22, 2020 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.