Qiskit / qiskit-metapackage

Qiskit is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.
https://qiskit.org
Apache License 2.0
3.03k stars 750 forks source link

Python version required #268

Closed omarcostahamido closed 5 years ago

omarcostahamido commented 5 years ago

Following on some interaction on slack, I suggest reviewing the required python version on the documentation. I was using 3.5.4 which did not allow me to use IBMQ.enable_account() on qiskit 0.7.0 nor install the latest qiskit version.

Matt-Stypulkoski commented 5 years ago

Hi @omarcostahamido,

I just tested installing the latest version of qiskit with python version 3.5.4. I was able to successfully install it.

I also tested using IBMQ.enable_account() in qiskit 0.7.0 with python verison 3.5.4, and I it succeeded without an error.

Would you be able to provide what OS you are using, and if you are using a virtual environment of any kind. Also, if you could provide the specific error you receive when trying to install the newest version, as well as trying to call IBMQ.enable_account in version 0.7.0, I could see if I can find some reasoning for why this is not working for you.

Just as a comparison, I ran everything in an Anaconda virtual environment on macOS version 10.14.3

omarcostahamido commented 5 years ago

Hi @Matt-Stypulkoski ,

I'm running Python 3.5.4 on Mac Mojave.

Regarding installing the latest version, here are the steps I took: (initially I tried to upgrade from 0.7.0 to the latest version but then i decided to try it from scratch)

$ pip install qiskit
Collecting qiskit
  Using cached https://files.pythonhosted.org/packages/80/e6/8b0b5a0e75d0a05060ce16a6e986051e9ee60c3ff58ff1088c983fc9aaea/qiskit-0.10.1.tar.gz
Collecting qiskit_terra==0.8.0 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/87/26/db3221b872bfb82d7a82dacdae316dc5034a3ed503315a694a7e491860a8/qiskit_terra-0.8.0-cp35-cp35m-macosx_10_6_intel.whl
Collecting qiskit-aer==0.2.0 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/65/ac/55e7b0b121288e7237c6cd01ad438ebaa97f6021ea644d200d22a201482b/qiskit_aer-0.2.0-cp35-cp35m-macosx_10_9_x86_64.whl
Collecting qiskit-ibmq-provider==0.2.2 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/5f/46/5d950ad9ca8db2029104438967c6a29f66645a23fd8e8764e7df01f1dbcf/qiskit-ibmq-provider-0.2.2.tar.gz
Collecting qiskit-ignis==0.1.1 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/6e/4e/77230b3a51a864fd54c2ef7b6a0d417063cf4b18943ce8fcd45e15f74f3e/qiskit_ignis-0.1.1-py3-none-any.whl
Collecting qiskit-aqua==0.5.0 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/36/ec/7f265fb26b19e68deefc879e4642ca0618f5551d7b5765049562ad9824e5/qiskit_aqua-0.5.0-py3-none-any.whl
Collecting qiskit-chemistry==0.5.0 (from qiskit)
  Using cached https://files.pythonhosted.org/packages/41/35/6b10aa3ea2fbe1b64cb0c3b2eaecb23cff044b574b151e8adc9ab9fbfe9a/qiskit_chemistry-0.5.0-py3-none-any.whl
Collecting psutil>=5 (from qiskit_terra==0.8.0->qiskit)
Collecting sympy>=1.3 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/21/21/f4105795ca7f35c541d82c5b06be684dd2f5cb4f508fb487cd7aea4de776/sympy-1.4-py2.py3-none-any.whl
Collecting pylatexenc>=1.4 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/54/ea/8e394f28d532f86241c77ecb8701e51973151059528de028a18c35249e8d/pylatexenc-1.4.tar.gz
Collecting jsonschema<2.7,>=2.6 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting scipy>=1.0 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/94/7e/6e0ec6fa5b063fc7324beed41c246037813b7577b36dff7ea6ff8fa15d55/scipy-1.2.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting pillow>=4.2.1 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/2e/51/923236cf166744db84d97e961a35a7601b7b7f5bb79756c3f5c6976d8d17/Pillow-6.0.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting numpy>=1.13 (from qiskit_terra==0.8.0->qiskit)
  Downloading https://files.pythonhosted.org/packages/5a/ea/f524e88a6f9090caa633fc76f61c3cb28d9c1814be9a440750916e4d7dc3/numpy-1.16.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (13.9MB)
     |████████████████████████████████| 14.0MB 9.9MB/s 
Collecting marshmallow-polyfield<4,>=3.2 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/fa/ba/6406b8cce3e42b2838d234310c3605627083bbb8f71dcc312c616480fe92/marshmallow_polyfield-3.2-py2.py3-none-any.whl
Collecting ply>=3.10 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/a3/58/35da89ee790598a0700ea49b2a66594140f44dec458c07e8e3d4979137fc/ply-3.11-py2.py3-none-any.whl
Collecting networkx>=2.2 (from qiskit_terra==0.8.0->qiskit)
Collecting marshmallow<3,>=2.17.0 (from qiskit_terra==0.8.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/bc/b4/f54f8533aad0645431bfda2cc3d20913a305779c80f8cb71229e8b615c5b/marshmallow-2.19.2-py2.py3-none-any.whl
Collecting requests>=2.19 (from qiskit-ibmq-provider==0.2.2->qiskit)
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting requests-ntlm>=1.1.0 (from qiskit-ibmq-provider==0.2.2->qiskit)
  Using cached https://files.pythonhosted.org/packages/03/4b/8b9a1afde8072c4d5710d9fa91433d504325821b038e00237dc8d6d833dc/requests_ntlm-1.1.0-py2.py3-none-any.whl
Collecting websockets<8,>=7 (from qiskit-ibmq-provider==0.2.2->qiskit)
  Using cached https://files.pythonhosted.org/packages/4b/68/691bc80df331a14c41baef569df7d9e2b91f77fc931ead4fb8c67f707f74/websockets-7.0-cp35-cp35m-macosx_10_6_intel.whl
Collecting setuptools>=40.1.0 (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl
Collecting pyeda; sys_platform != "win32" (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/01/29/b6ce038a75409239db8762b4744c8b53eb62e0b6240ece1c2969a7250206/pyeda-0.28.0.tar.gz
Collecting cvxopt (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/57/b1/453981be105385bfb0889ed753712fc107d854f6c34d8d2d27cb1916b7b6/cvxopt-1.2.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting scikit-learn>=0.20.0 (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/22/29/6f02a111018e145c77ca51f0df473570eb5c692170dc170ec5c8930ad8b5/scikit_learn-0.21.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting torch; sys_platform != "win32" (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/1b/00/c6f64d2441c6077321560835de93e34a4b2d5937e8f9ae7568959ec11da8/torch-1.1.0-cp35-none-macosx_10_6_x86_64.whl
Collecting docplex (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/83/e7/5882561091830be9047fe29b4304714ddc0aaf403c8c123ad2e87f4a0376/docplex-2.9.141.tar.gz
Collecting fastdtw (from qiskit-aqua==0.5.0->qiskit)
  Using cached https://files.pythonhosted.org/packages/fa/ef/a4cf2d72518b5fccd30284ba4d431fdb6266f72e75702ff05fd7c00b0b63/fastdtw-0.3.2.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found!
    No local packages or working download links found for pytest-runner
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-8qrvq9mm/fastdtw/setup.py", line 77, in <module>
        setup(**kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/setuptools/dist.py", line 315, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/pkg_resources/__init__.py", line 850, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1122, in best_match
        return self.obtain(req, installer)
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1134, in obtain
        return installer(requirement)
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC8/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 659, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-8qrvq9mm/fastdtw/

Outside of venv I was using qiskit 0.8.0 (again, Python 3.5.4) and if I try to pip install -U qiskit here is what I get:

terminal

``` Collecting qiskit Using cached https://files.pythonhosted.org/packages/80/e6/8b0b5a0e75d0a05060ce16a6e986051e9ee60c3ff58ff1088c983fc9aaea/qiskit-0.10.1.tar.gz Collecting qiskit_terra==0.8.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/87/26/db3221b872bfb82d7a82dacdae316dc5034a3ed503315a694a7e491860a8/qiskit_terra-0.8.0-cp35-cp35m-macosx_10_6_intel.whl Collecting qiskit-aer==0.2.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/65/ac/55e7b0b121288e7237c6cd01ad438ebaa97f6021ea644d200d22a201482b/qiskit_aer-0.2.0-cp35-cp35m-macosx_10_9_x86_64.whl Collecting qiskit-ibmq-provider==0.2.2 (from qiskit) Using cached https://files.pythonhosted.org/packages/5f/46/5d950ad9ca8db2029104438967c6a29f66645a23fd8e8764e7df01f1dbcf/qiskit-ibmq-provider-0.2.2.tar.gz Collecting qiskit-ignis==0.1.1 (from qiskit) Using cached https://files.pythonhosted.org/packages/6e/4e/77230b3a51a864fd54c2ef7b6a0d417063cf4b18943ce8fcd45e15f74f3e/qiskit_ignis-0.1.1-py3-none-any.whl Collecting qiskit-aqua==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/36/ec/7f265fb26b19e68deefc879e4642ca0618f5551d7b5765049562ad9824e5/qiskit_aqua-0.5.0-py3-none-any.whl Collecting qiskit-chemistry==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/41/35/6b10aa3ea2fbe1b64cb0c3b2eaecb23cff044b574b151e8adc9ab9fbfe9a/qiskit_chemistry-0.5.0-py3-none-any.whl Requirement already satisfied, skipping upgrade: networkx>=2.2 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (2.2) Requirement already satisfied, skipping upgrade: pillow>=4.2.1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (5.4.1) Requirement already satisfied, skipping upgrade: sympy>=1.3 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (1.3) Requirement already satisfied, skipping upgrade: psutil>=5 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (5.6.0) Requirement already satisfied, skipping upgrade: scipy>=1.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (1.2.1) Requirement already satisfied, skipping upgrade: marshmallow<3,>=2.17.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (2.19.0) Requirement already satisfied, skipping upgrade: marshmallow-polyfield<4,>=3.2 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (3.2) Collecting pylatexenc>=1.4 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/54/ea/8e394f28d532f86241c77ecb8701e51973151059528de028a18c35249e8d/pylatexenc-1.4.tar.gz Requirement already satisfied, skipping upgrade: jsonschema<2.7,>=2.6 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (2.6.0) Requirement already satisfied, skipping upgrade: ply>=3.10 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (3.11) Requirement already satisfied, skipping upgrade: numpy>=1.13 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit_terra==0.8.0->qiskit) (1.16.2) Requirement already satisfied, skipping upgrade: requests>=2.19 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit-ibmq-provider==0.2.2->qiskit) (2.21.0) Requirement already satisfied, skipping upgrade: requests-ntlm>=1.1.0 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from qiskit-ibmq-provider==0.2.2->qiskit) (1.1.0) Collecting websockets<8,>=7 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/4b/68/691bc80df331a14c41baef569df7d9e2b91f77fc931ead4fb8c67f707f74/websockets-7.0-cp35-cp35m-macosx_10_6_intel.whl Collecting scikit-learn>=0.20.0 (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/22/29/6f02a111018e145c77ca51f0df473570eb5c692170dc170ec5c8930ad8b5/scikit_learn-0.21.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting docplex (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/83/e7/5882561091830be9047fe29b4304714ddc0aaf403c8c123ad2e87f4a0376/docplex-2.9.141.tar.gz Collecting quandl (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/12/64/6314547cb01fa75697ddba6d6d43a9f1d023c1730ffc6abf3db7a0c89222/Quandl-3.4.8-py2.py3-none-any.whl Collecting setuptools>=40.1.0 (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl Collecting torch; sys_platform != "win32" (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/1b/00/c6f64d2441c6077321560835de93e34a4b2d5937e8f9ae7568959ec11da8/torch-1.1.0-cp35-none-macosx_10_6_x86_64.whl Collecting fastdtw (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/fa/ef/a4cf2d72518b5fccd30284ba4d431fdb6266f72e75702ff05fd7c00b0b63/fastdtw-0.3.2.tar.gz Complete output from command python setup.py egg_info: Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! Couldn't find index page for 'pytest-runner' (maybe misspelled?) Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! No local packages or working download links found for pytest-runner Traceback (most recent call last): File "", line 1, in File "/private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-jr65y_5_/fastdtw/setup.py", line 77, in setup(**kwargs) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 315, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs replace_conflicting=True, File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 850, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1122, in best_match return self.obtain(req, installer) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1134, in obtain return installer(requirement) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 429, in fetch_build_egg return cmd.easy_install(req) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 659, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner') ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-jr65y_5_/fastdtw/ You are using pip version 19.0.3, however version 19.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. ```

Regarding the IBMQ.enable_account() I'm having that issue on a jupyter notebook inside the venv with Pyhton 3.5.4, latest pip, and the following packages:

pip list

``` Package Version --------------------- -------- appnope 0.1.0 asn1crypto 0.24.0 backcall 0.1.0 bleach 3.1.0 certifi 2019.3.9 cffi 1.12.3 chardet 3.0.4 cryptography 2.6.1 cycler 0.10.0 decorator 4.4.0 defusedxml 0.6.0 entrypoints 0.3 idna 2.8 ipykernel 5.1.0 ipython 7.5.0 ipython-genutils 0.2.0 ipywidgets 7.4.2 jedi 0.13.3 Jinja2 2.10.1 jsonschema 2.6.0 jupyter 1.0.0 jupyter-client 5.2.4 jupyter-console 6.0.0 jupyter-core 4.4.0 kiwisolver 1.1.0 MarkupSafe 1.1.1 marshmallow 2.19.2 marshmallow-polyfield 3.2 matplotlib 3.0.2 mistune 0.8.4 mpmath 1.1.0 nbconvert 5.5.0 nbformat 4.4.0 networkx 2.3 notebook 5.7.8 ntlm-auth 1.3.0 numpy 1.16.0 pandocfilters 1.4.2 parso 0.4.0 pexpect 4.7.0 pickleshare 0.7.5 Pillow 6.0.0 pip 19.1.1 ply 3.11 prometheus-client 0.6.0 prompt-toolkit 2.0.9 psutil 5.6.2 ptyprocess 0.6.0 pycparser 2.19 Pygments 2.4.0 pyparsing 2.4.0 python-dateutil 2.8.0 pyzmq 18.0.1 qiskit 0.7.0 qiskit-aer 0.1.1 qiskit-terra 0.7.2 qtconsole 4.4.4 requests 2.21.0 requests-ntlm 1.1.0 scipy 1.2.1 Send2Trash 1.5.0 setuptools 28.8.0 six 1.12.0 sympy 1.4 terminado 0.8.2 testpath 0.4.2 tornado 6.0.2 traitlets 4.3.2 urllib3 1.24.3 wcwidth 0.1.7 webencodings 0.5.1 wheel 0.33.4 widgetsnbextension 3.4.2 ```

Where after I run this

import qiskit
from qiskit import IBMQ
IBMQ.enable_account("MYAPITOKEN")

I get this:

jupyter notebook error

``` --------------------------------------------------------------------------- SSLEOFError Traceback (most recent call last) ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 599 body=body, headers=headers, --> 600 chunked=chunked) 601 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 342 try: --> 343 self._validate_conn(conn) 344 except (SocketTimeout, BaseSSLError) as e: ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 838 if not getattr(conn, 'sock', None): # AppEngine might not have `.sock` --> 839 conn.connect() 840 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/connection.py in connect(self) 343 server_hostname=server_hostname, --> 344 ssl_context=context) 345 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/util/ssl_.py in ssl_wrap_socket(sock, keyfile, certfile, cert_reqs, ca_certs, server_hostname, ssl_version, ciphers, ssl_context, ca_cert_dir) 344 if HAS_SNI and server_hostname is not None: --> 345 return context.wrap_socket(sock, server_hostname=server_hostname) 346 /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname) 384 server_hostname=server_hostname, --> 385 _context=self) 386 /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py in __init__(self, sock, keyfile, certfile, server_side, cert_reqs, ssl_version, ca_certs, do_handshake_on_connect, family, type, proto, fileno, suppress_ragged_eofs, npn_protocols, ciphers, server_hostname, _context) 759 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets") --> 760 self.do_handshake() 761 /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py in do_handshake(self, block) 995 self.settimeout(None) --> 996 self._sslobj.do_handshake() 997 finally: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py in do_handshake(self) 640 """Start the SSL/TLS handshake.""" --> 641 self._sslobj.do_handshake() 642 if self.context.check_hostname: SSLEOFError: EOF occurred in violation of protocol (_ssl.c:719) During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 448 retries=self.max_retries, --> 449 timeout=timeout 450 ) ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 637 retries = retries.increment(method, url, error=e, _pool=self, --> 638 _stacktrace=sys.exc_info()[2]) 639 retries.sleep() ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 398 if new_retry.is_exhausted(): --> 399 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 400 MaxRetryError: HTTPSConnectionPool(host='quantumexperience.ng.bluemix.net', port=443): Max retries exceeded with url: /api/users/loginWithToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:719)'),)) During handling of the above exception, another exception occurred: SSLError Traceback (most recent call last) ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/api/ibmqconnector.py in obtain_token(self, config) 129 headers=headers, --> 130 **self.extra_args) 131 except requests.RequestException as ex: ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/api.py in post(url, data, json, **kwargs) 115 --> 116 return request('post', url, data=data, json=json, **kwargs) 117 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/api.py in request(method, url, **kwargs) 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/sessions.py in send(self, request, **kwargs) 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 513 # This branch is for urllib3 v1.22 and later. --> 514 raise SSLError(e, request=request) 515 SSLError: HTTPSConnectionPool(host='quantumexperience.ng.bluemix.net', port=443): Max retries exceeded with url: /api/users/loginWithToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:719)'),)) During handling of the above exception, another exception occurred: ApiError Traceback (most recent call last) ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/ibmqsingleprovider.py in _authenticate(cls, credentials) 75 return IBMQConnector(credentials.token, config_dict, ---> 76 credentials.verify) 77 except Exception as ex: ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/api/ibmqconnector.py in __init__(self, token, config, verify) 494 --> 495 self.req = _Request(token, config=config, verify=verify) 496 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/api/ibmqconnector.py in __init__(self, token, config, verify, retries, timeout_interval) 255 proxy_urls=self.proxy_urls, --> 256 ntlm_credentials=self.ntlm_credentials) 257 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/api/ibmqconnector.py in __init__(self, token, config, verify, proxy_urls, ntlm_credentials) 97 if token: ---> 98 self.obtain_token(config=self.config) 99 else: ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/api/ibmqconnector.py in obtain_token(self, config) 131 except requests.RequestException as ex: --> 132 raise ApiError('error during login: %s' % str(ex)) 133 elif config and ("email" in config) and ("password" in config): ApiError: error during login: HTTPSConnectionPool(host='quantumexperience.ng.bluemix.net', port=443): Max retries exceeded with url: /api/users/loginWithToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:719)'),)) The above exception was the direct cause of the following exception: ConnectionError Traceback (most recent call last) in 1 from qiskit import IBMQ 2 # Authenticate an account and add for use during this session. Replace string argument with your private token. ----> 3 IBMQ.enable_account("MYAPITOKEN") 4 # To store your credentials locally you can run: 5 #MYAPITOKEN ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/ibmqprovider.py in enable_account(self, token, url, **kwargs) 115 credentials = Credentials(token, url, **kwargs) 116 --> 117 self._append_account(credentials) 118 119 def save_account(self, token, url=QE_URL, overwrite=False, **kwargs): ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/ibmqprovider.py in _append_account(self, credentials) 251 warnings.warn('Credentials are already in use.') 252 --> 253 single_provider = IBMQSingleProvider(credentials, self) 254 self._accounts[credentials.unique_id()] = single_provider 255 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/ibmqsingleprovider.py in __init__(self, credentials, ibmq_provider) 40 # Get a connection to IBMQ. 41 self.credentials = credentials ---> 42 self._api = self._authenticate(self.credentials) 43 self._ibm_provider = ibmq_provider 44 ~/Downloads/Mastering-Quantum-Computing-with-IBM-QX/MQC/lib/python3.5/site-packages/qiskit/providers/ibmq/ibmqsingleprovider.py in _authenticate(cls, credentials) 82 root_exception = None 83 raise ConnectionError("Couldn't connect to IBMQ server: {0}" ---> 84 .format(ex)) from root_exception 85 86 def _discover_remote_backends(self): ConnectionError: Couldn't connect to IBMQ server: error during login: HTTPSConnectionPool(host='quantumexperience.ng.bluemix.net', port=443): Max retries exceeded with url: /api/users/loginWithToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:719)'),)) ```

SooluThomas commented 5 years ago

Hi @omarcostahamido

Upgrade the pip version inside and outside (if you are using) the venv: pip install --upgrade pip

Did you obtain the API Token from IBM Q website or are you using the string "MYAPITOKEN"? Please refer https://github.com/Qiskit/qiskit-terra/blob/master/README.md#executing-your-code-on-a-real-quantum-chip for details to get the API Token.

omarcostahamido commented 5 years ago

Hi @SooluThomas If you look at my post again you will see that I am using the updated pip. I had to use $ curl https://bootstrap.pypa.io/get-pip.py | to upgrade it instead of pip install --upgrade pip because the latter does not work with pip < 9.0.3. I am not using the string "MYAPITOKEN" obviously... I just replaced it here so I would not accidentally share my actual api token with the whole world ;)

Matt-Stypulkoski commented 5 years ago

I noticed that in your posted pip list you had setuptools 28.8.0. I know this pip list was posted in regards to the IBMQ.enable_account issue, but is that also your version of setuptools when trying to pip install qiskit? If so, I would try to upgrade setuptools to the newest version, as from what I've seen many people who receive the Command "python setup.py egg_info" failed with error code 1 error when installing other packages have been advised that that may fix the issue.

Matt-Stypulkoski commented 5 years ago

Also, just for clarity, did you replace your token with "MYAPITOKEN" in the stacktrace as well? Specifically here:

1 from qiskit import IBMQ
2 # Authenticate an account and add for use during this session. Replace string argument with your private token.
----> 3 IBMQ.enable_account("MYAPITOKEN")
omarcostahamido commented 5 years ago

I noticed that in your posted pip list you had setuptools 28.8.0. I know this pip list was posted in regards to the IBMQ.enable_account issue, but is that also your version of setuptools when trying to pip install qiskit? If so, I would try to upgrade setuptools to the newest version, as from what I've seen many people who receive the Command "python setup.py egg_info" failed with error code 1 error when installing other packages have been advised that that may fix the issue.

@Matt-Stypulkoski good catch. Though I tried it and with a new 3.5.4 venv with these packages:

pip list

``` Package Version ---------- ------- pip 19.1.1 setuptools 41.0.1 wheel 0.33.4 ```

I got this when trying to run pip install qiskit

terminal

``` $ pip install qiskit Collecting qiskit Using cached https://files.pythonhosted.org/packages/80/e6/8b0b5a0e75d0a05060ce16a6e986051e9ee60c3ff58ff1088c983fc9aaea/qiskit-0.10.1.tar.gz Collecting qiskit_terra==0.8.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/87/26/db3221b872bfb82d7a82dacdae316dc5034a3ed503315a694a7e491860a8/qiskit_terra-0.8.0-cp35-cp35m-macosx_10_6_intel.whl Collecting qiskit-aer==0.2.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/65/ac/55e7b0b121288e7237c6cd01ad438ebaa97f6021ea644d200d22a201482b/qiskit_aer-0.2.0-cp35-cp35m-macosx_10_9_x86_64.whl Collecting qiskit-ibmq-provider==0.2.2 (from qiskit) Using cached https://files.pythonhosted.org/packages/5f/46/5d950ad9ca8db2029104438967c6a29f66645a23fd8e8764e7df01f1dbcf/qiskit-ibmq-provider-0.2.2.tar.gz Collecting qiskit-ignis==0.1.1 (from qiskit) Using cached https://files.pythonhosted.org/packages/6e/4e/77230b3a51a864fd54c2ef7b6a0d417063cf4b18943ce8fcd45e15f74f3e/qiskit_ignis-0.1.1-py3-none-any.whl Collecting qiskit-aqua==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/36/ec/7f265fb26b19e68deefc879e4642ca0618f5551d7b5765049562ad9824e5/qiskit_aqua-0.5.0-py3-none-any.whl Collecting qiskit-chemistry==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/41/35/6b10aa3ea2fbe1b64cb0c3b2eaecb23cff044b574b151e8adc9ab9fbfe9a/qiskit_chemistry-0.5.0-py3-none-any.whl Collecting marshmallow<3,>=2.17.0 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/bc/b4/f54f8533aad0645431bfda2cc3d20913a305779c80f8cb71229e8b615c5b/marshmallow-2.19.2-py2.py3-none-any.whl Collecting scipy>=1.0 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/94/7e/6e0ec6fa5b063fc7324beed41c246037813b7577b36dff7ea6ff8fa15d55/scipy-1.2.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting jsonschema<2.7,>=2.6 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl Collecting ply>=3.10 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/a3/58/35da89ee790598a0700ea49b2a66594140f44dec458c07e8e3d4979137fc/ply-3.11-py2.py3-none-any.whl Collecting pillow>=4.2.1 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/2e/51/923236cf166744db84d97e961a35a7601b7b7f5bb79756c3f5c6976d8d17/Pillow-6.0.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting networkx>=2.2 (from qiskit_terra==0.8.0->qiskit) Collecting sympy>=1.3 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/21/21/f4105795ca7f35c541d82c5b06be684dd2f5cb4f508fb487cd7aea4de776/sympy-1.4-py2.py3-none-any.whl Collecting pylatexenc>=1.4 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/54/ea/8e394f28d532f86241c77ecb8701e51973151059528de028a18c35249e8d/pylatexenc-1.4.tar.gz Collecting psutil>=5 (from qiskit_terra==0.8.0->qiskit) Collecting marshmallow-polyfield<4,>=3.2 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/fa/ba/6406b8cce3e42b2838d234310c3605627083bbb8f71dcc312c616480fe92/marshmallow_polyfield-3.2-py2.py3-none-any.whl Collecting numpy>=1.13 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/5a/ea/f524e88a6f9090caa633fc76f61c3cb28d9c1814be9a440750916e4d7dc3/numpy-1.16.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting requests>=2.19 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl Collecting requests-ntlm>=1.1.0 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/03/4b/8b9a1afde8072c4d5710d9fa91433d504325821b038e00237dc8d6d833dc/requests_ntlm-1.1.0-py2.py3-none-any.whl Collecting websockets<8,>=7 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/4b/68/691bc80df331a14c41baef569df7d9e2b91f77fc931ead4fb8c67f707f74/websockets-7.0-cp35-cp35m-macosx_10_6_intel.whl Collecting fastdtw (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/fa/ef/a4cf2d72518b5fccd30284ba4d431fdb6266f72e75702ff05fd7c00b0b63/fastdtw-0.3.2.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Download error on https://pypi.org/simple/pytest-runner/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! Couldn't find index page for 'pytest-runner' (maybe misspelled?) Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) -- Some packages may not be found! No local packages or working download links found for pytest-runner Traceback (most recent call last): File "", line 1, in File "/private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-yc5z46v_/fastdtw/setup.py", line 77, in setup(**kwargs) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/setuptools/__init__.py", line 144, in setup _install_setup_requires(attrs) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/setuptools/dist.py", line 717, in fetch_build_eggs replace_conflicting=True, File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/pkg_resources/__init__.py", line 782, in resolve replace_conflicting=replace_conflicting File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1065, in best_match return self.obtain(req, installer) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1077, in obtain return installer(requirement) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/setuptools/dist.py", line 784, in fetch_build_egg return cmd.easy_install(req) File "/Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/qiskitlast/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 673, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner') ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-yc5z46v_/fastdtw/ ```

omarcostahamido commented 5 years ago

Also, just for clarity, did you replace your token with "MYAPITOKEN" in the stacktrace as well? Specifically here:

1 from qiskit import IBMQ
2 # Authenticate an account and add for use during this session. Replace string argument with your private token.
----> 3 IBMQ.enable_account("MYAPITOKEN")

Yes, I did. CMD+F is my friend :D

Matt-Stypulkoski commented 5 years ago

OK. My other suggestion would be to try to separately pip install the requirement that seems to be causing the errors. It looks like the error is thrown when trying to install fastdtw, which is a requirement for qiskit-aqua. I would try to pip install fastdtw and see if that completes. If it does, I would try pip install qiskit again and see if it completes, or if you get a different error.

Matt-Stypulkoski commented 5 years ago

Hi @omarcostahamido,

This installation issue was experienced by another user, and the solution that seemed to work for them was to first pip install pytest-runner. That fixed their installation error. I would suggest trying this, and then trying to pip install qiskit again.

omarcostahamido commented 5 years ago

Hi @Matt-Stypulkoski , Thank you for your leg work, you just solved the second half of my question (how to install latest qiskit with Python 3.5.4). Here are the steps I took: First I tried to run pip install pytest-runner but I got this:

terminal

``` Collecting pytest-runner Could not fetch URL https://pypi.python.org/simple/pytest-runner/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:719) - skipping Could not find a version that satisfies the requirement pytest-runner (from versions: ) No matching distribution found for pytest-runner ```

Then I updated pip using curl https://bootstrap.pypa.io/get-pip.py | python - and after retried to install your suggestion pip install pytest-runner which succesfully installed:

terminal

``` Collecting pytest-runner Downloading https://files.pythonhosted.org/packages/04/88/176f3b60929a391a02ff8514e0cb5bf81956da4b98c832ee2d8038bc8358/pytest_runner-4.4-py2.py3-none-any.whl Installing collected packages: pytest-runner Successfully installed pytest-runner-4.4 ```

Only after I tried to install qiskit using pip install qiskit which run very well this time:

terminal

``` Collecting qiskit Using cached https://files.pythonhosted.org/packages/80/e6/8b0b5a0e75d0a05060ce16a6e986051e9ee60c3ff58ff1088c983fc9aaea/qiskit-0.10.1.tar.gz Collecting qiskit_terra==0.8.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/87/26/db3221b872bfb82d7a82dacdae316dc5034a3ed503315a694a7e491860a8/qiskit_terra-0.8.0-cp35-cp35m-macosx_10_6_intel.whl Collecting qiskit-aer==0.2.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/65/ac/55e7b0b121288e7237c6cd01ad438ebaa97f6021ea644d200d22a201482b/qiskit_aer-0.2.0-cp35-cp35m-macosx_10_9_x86_64.whl Collecting qiskit-ibmq-provider==0.2.2 (from qiskit) Using cached https://files.pythonhosted.org/packages/5f/46/5d950ad9ca8db2029104438967c6a29f66645a23fd8e8764e7df01f1dbcf/qiskit-ibmq-provider-0.2.2.tar.gz Collecting qiskit-ignis==0.1.1 (from qiskit) Using cached https://files.pythonhosted.org/packages/6e/4e/77230b3a51a864fd54c2ef7b6a0d417063cf4b18943ce8fcd45e15f74f3e/qiskit_ignis-0.1.1-py3-none-any.whl Collecting qiskit-aqua==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/36/ec/7f265fb26b19e68deefc879e4642ca0618f5551d7b5765049562ad9824e5/qiskit_aqua-0.5.0-py3-none-any.whl Collecting qiskit-chemistry==0.5.0 (from qiskit) Using cached https://files.pythonhosted.org/packages/41/35/6b10aa3ea2fbe1b64cb0c3b2eaecb23cff044b574b151e8adc9ab9fbfe9a/qiskit_chemistry-0.5.0-py3-none-any.whl Collecting marshmallow-polyfield<4,>=3.2 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/fa/ba/6406b8cce3e42b2838d234310c3605627083bbb8f71dcc312c616480fe92/marshmallow_polyfield-3.2-py2.py3-none-any.whl Collecting pylatexenc>=1.4 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/54/ea/8e394f28d532f86241c77ecb8701e51973151059528de028a18c35249e8d/pylatexenc-1.4.tar.gz Collecting scipy>=1.0 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/94/7e/6e0ec6fa5b063fc7324beed41c246037813b7577b36dff7ea6ff8fa15d55/scipy-1.2.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting networkx>=2.2 (from qiskit_terra==0.8.0->qiskit) Collecting sympy>=1.3 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/21/21/f4105795ca7f35c541d82c5b06be684dd2f5cb4f508fb487cd7aea4de776/sympy-1.4-py2.py3-none-any.whl Collecting pillow>=4.2.1 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/2e/51/923236cf166744db84d97e961a35a7601b7b7f5bb79756c3f5c6976d8d17/Pillow-6.0.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting psutil>=5 (from qiskit_terra==0.8.0->qiskit) Collecting ply>=3.10 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/a3/58/35da89ee790598a0700ea49b2a66594140f44dec458c07e8e3d4979137fc/ply-3.11-py2.py3-none-any.whl Collecting jsonschema<2.7,>=2.6 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl Collecting marshmallow<3,>=2.17.0 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/bc/b4/f54f8533aad0645431bfda2cc3d20913a305779c80f8cb71229e8b615c5b/marshmallow-2.19.2-py2.py3-none-any.whl Collecting numpy>=1.13 (from qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/5a/ea/f524e88a6f9090caa633fc76f61c3cb28d9c1814be9a440750916e4d7dc3/numpy-1.16.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting requests>=2.19 (from qiskit-ibmq-provider==0.2.2->qiskit) Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB) |████████████████████████████████| 143kB 5.6MB/s Collecting requests-ntlm>=1.1.0 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/03/4b/8b9a1afde8072c4d5710d9fa91433d504325821b038e00237dc8d6d833dc/requests_ntlm-1.1.0-py2.py3-none-any.whl Collecting websockets<8,>=7 (from qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/4b/68/691bc80df331a14c41baef569df7d9e2b91f77fc931ead4fb8c67f707f74/websockets-7.0-cp35-cp35m-macosx_10_6_intel.whl Collecting torch; sys_platform != "win32" (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/1b/00/c6f64d2441c6077321560835de93e34a4b2d5937e8f9ae7568959ec11da8/torch-1.1.0-cp35-none-macosx_10_6_x86_64.whl Collecting scikit-learn>=0.20.0 (from qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/8d/8f/0fc2384666f7b67a8821c48ae0a7fdd41515e1c938332b2f0848bbad0225/scikit_learn-0.21.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (10.2MB) |████████████████████████████████| 10.3MB 3.0MB/s Collecting setuptools>=40.1.0 (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl Collecting pyeda; sys_platform != "win32" (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/01/29/b6ce038a75409239db8762b4744c8b53eb62e0b6240ece1c2969a7250206/pyeda-0.28.0.tar.gz Collecting dlx (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/54/c0/b8fb5bb727e983b6f5251433ef941b48f38c65bb0bd6ec509e9185bcd406/dlx-1.0.4.tar.gz Collecting docplex (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/83/e7/5882561091830be9047fe29b4304714ddc0aaf403c8c123ad2e87f4a0376/docplex-2.9.141.tar.gz Collecting quandl (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/12/64/6314547cb01fa75697ddba6d6d43a9f1d023c1730ffc6abf3db7a0c89222/Quandl-3.4.8-py2.py3-none-any.whl Collecting fastdtw (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/fa/ef/a4cf2d72518b5fccd30284ba4d431fdb6266f72e75702ff05fd7c00b0b63/fastdtw-0.3.2.tar.gz Collecting cvxopt (from qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/57/b1/453981be105385bfb0889ed753712fc107d854f6c34d8d2d27cb1916b7b6/cvxopt-1.2.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl Collecting pyscf; sys_platform != "win32" (from qiskit-chemistry==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/4b/46/69ef71e17d043465f0347b01e7669e9cc531f4e9cd4c7f9eb8eb8f06037b/pyscf-1.6.1.post1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (10.6MB) |████████████████████████████████| 10.7MB 2.6MB/s Collecting h5py (from qiskit-chemistry==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/b5/45/f07e85de00bd72ed0051b5c6df796e42fb104e3128852991a433742c1508/h5py-2.9.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (6.2MB) |████████████████████████████████| 6.2MB 26.8MB/s Collecting decorator>=4.3.0 (from networkx>=2.2->qiskit_terra==0.8.0->qiskit) Using cached https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl Collecting mpmath>=0.19 (from sympy>=1.3->qiskit_terra==0.8.0->qiskit) Collecting certifi>=2017.4.17 (from requests>=2.19->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.19->qiskit-ibmq-provider==0.2.2->qiskit) Downloading https://files.pythonhosted.org/packages/39/ec/d93dfc69617a028915df914339ef66936ea976ef24fa62940fd86ba0326e/urllib3-1.25.2-py2.py3-none-any.whl (150kB) |████████████████████████████████| 153kB 29.1MB/s Collecting idna<2.9,>=2.5 (from requests>=2.19->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.19->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting cryptography>=1.3 (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/12/cd/f2c4dac6e48add01d4575e8fd8ca9a16f4236afe321e6e5ffdc7a4725b55/cryptography-2.6.1-cp34-abi3-macosx_10_6_intel.whl Collecting ntlm-auth>=1.0.2 (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/d5/3d/1c54e92f62bbc747a638da94adb439f99dc2d2f3041fe41a06b0da4f2808/ntlm_auth-1.3.0-py2.py3-none-any.whl Collecting joblib>=0.11 (from scikit-learn>=0.20.0->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/cd/c1/50a758e8247561e58cb87305b1e90b171b8c767b15b12a1734001f41d356/joblib-0.13.2-py2.py3-none-any.whl (278kB) |████████████████████████████████| 286kB 12.3MB/s Collecting six (from docplex->qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Collecting docloud>=1.0.315 (from docplex->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/26/c3/f64eb186f8296603fcd4bf6f1e514e7c57e76ca2bd6d1b37221890e123e3/docloud-1.0.369.tar.gz Collecting ndg-httpsclient (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/fb/67/c2f508c00ed2a6911541494504b7cac16fe0b0473912568df65fd1801132/ndg_httpsclient-0.5.1-py3-none-any.whl Collecting pyasn1 (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl (73kB) |████████████████████████████████| 81kB 7.9MB/s Collecting pyOpenSSL (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl (53kB) |████████████████████████████████| 61kB 17.9MB/s Collecting more-itertools<=5.0.0 (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/a4/a6/42f17d065bda1fac255db13afc94c93dbfb64393eae37c749b4cb0752fc7/more_itertools-5.0.0-py3-none-any.whl (52kB) |████████████████████████████████| 61kB 12.8MB/s Collecting python-dateutil (from quandl->qiskit-aqua==0.5.0->qiskit) Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl Collecting inflection>=0.3.1 (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/d5/35/a6eb45b4e2356fe688b21570864d4aa0d0a880ce387defe9c589112077f8/inflection-0.3.1.tar.gz Collecting pandas>=0.14 (from quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/da/82/1bc41a30737b70863c9b50983ca0413aa47905d215892ee136de3217bf3b/pandas-0.24.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.0MB) |████████████████████████████████| 16.0MB 1.8MB/s Collecting cffi!=1.11.3,>=1.8 (from cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/fb/28/c9b9a9eea8011285474de7d0043850b99610c0f2c2f7cc7d8b54c3adff03/cffi-1.12.3-cp35-cp35m-macosx_10_6_intel.whl Collecting asn1crypto>=0.21.0 (from cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.2.2->qiskit) Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl Collecting pytz>=2011k (from pandas>=0.14->quandl->qiskit-aqua==0.5.0->qiskit) Downloading https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl (510kB) |████████████████████████████████| 593kB 32.7MB/s Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.2.2->qiskit) Building wheels for collected packages: qiskit, qiskit-ibmq-provider, pylatexenc, pyeda, dlx, docplex, fastdtw, docloud, inflection Building wheel for qiskit (setup.py) ... error ERROR: Complete output from command /Users/omar/Downloads/Mastering-Quantum-Computing-with-IBM-QX/second/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-install-n5hrf9wx/qiskit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/vn/l4mzl5mj5mndfykt5l4_w_340000gn/T/pip-wheel-ky7qhd_v --python-tag cp35: ERROR: running bdist_wheel ---------------------------------------- ERROR: Failed building wheel for qiskit Running setup.py clean for qiskit Building wheel for qiskit-ibmq-provider (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/5f/2d/d0/8071064f052e2fc871eacfc0f512f749400f9040c348c40146 Building wheel for pylatexenc (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/2e/a0/53/8b149c27b27ed5ee9d515f1079612935df3eb5f21350726e40 Building wheel for pyeda (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/8e/33/76/efb4411454eb542ca9737cdd60418ec23f3625809738d17871 Building wheel for dlx (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/bb/ba/15/fdd0deb104df3254912998150ba9245668db06b00af5912d1a Building wheel for docplex (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/87/a0/8b/d628240de84941fbc744b270701a75d16c2368e1f341264965 Building wheel for fastdtw (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/61/62/46/5a9cc316aa50cc4fb36fd4bf14e7dd206642db3247d7746c23 Building wheel for docloud (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/83/a9/15/8461c57475540838a2895c5f235d511a2d940d6c573074b2b4 Building wheel for inflection (setup.py) ... done Stored in directory: /Users/omar/Library/Caches/pip/wheels/9f/5a/d3/6fc3bf6516d2a3eb7e18f9f28b472110b59325f3f258fe9211 Successfully built qiskit-ibmq-provider pylatexenc pyeda dlx docplex fastdtw docloud inflection Failed to build qiskit Installing collected packages: marshmallow, marshmallow-polyfield, pylatexenc, numpy, scipy, decorator, networkx, mpmath, sympy, pillow, psutil, ply, jsonschema, qiskit-terra, qiskit-aer, certifi, urllib3, idna, chardet, requests, pycparser, cffi, six, asn1crypto, cryptography, ntlm-auth, requests-ntlm, websockets, qiskit-ibmq-provider, qiskit-ignis, torch, joblib, scikit-learn, setuptools, pyeda, dlx, docloud, docplex, pyOpenSSL, pyasn1, ndg-httpsclient, more-itertools, python-dateutil, inflection, pytz, pandas, quandl, fastdtw, cvxopt, qiskit-aqua, h5py, pyscf, qiskit-chemistry, qiskit Found existing installation: setuptools 28.8.0 Uninstalling setuptools-28.8.0: Successfully uninstalled setuptools-28.8.0 Running setup.py install for qiskit ... done Successfully installed asn1crypto-0.24.0 certifi-2019.3.9 cffi-1.12.3 chardet-3.0.4 cryptography-2.6.1 cvxopt-1.2.3 decorator-4.4.0 dlx-1.0.4 docloud-1.0.369 docplex-2.9.141 fastdtw-0.3.2 h5py-2.9.0 idna-2.8 inflection-0.3.1 joblib-0.13.2 jsonschema-2.6.0 marshmallow-2.19.2 marshmallow-polyfield-3.2 more-itertools-5.0.0 mpmath-1.1.0 ndg-httpsclient-0.5.1 networkx-2.3 ntlm-auth-1.3.0 numpy-1.16.3 pandas-0.24.2 pillow-6.0.0 ply-3.11 psutil-5.6.2 pyOpenSSL-19.0.0 pyasn1-0.4.5 pycparser-2.19 pyeda-0.28.0 pylatexenc-1.4 pyscf-1.6.1.post1 python-dateutil-2.8.0 pytz-2019.1 qiskit-0.10.1 qiskit-aer-0.2.0 qiskit-aqua-0.5.0 qiskit-chemistry-0.5.0 qiskit-ibmq-provider-0.2.2 qiskit-ignis-0.1.1 qiskit-terra-0.8.0 quandl-3.4.8 requests-2.22.0 requests-ntlm-1.1.0 scikit-learn-0.21.1 scipy-1.2.1 setuptools-41.0.1 six-1.12.0 sympy-1.4 torch-1.1.0 urllib3-1.25.2 websockets-7.0 ```

Which can also be confirmed with pip list:

terminal

``` Package Version --------------------- ----------- asn1crypto 0.24.0 certifi 2019.3.9 cffi 1.12.3 chardet 3.0.4 cryptography 2.6.1 cvxopt 1.2.3 decorator 4.4.0 dlx 1.0.4 docloud 1.0.369 docplex 2.9.141 fastdtw 0.3.2 h5py 2.9.0 idna 2.8 inflection 0.3.1 joblib 0.13.2 jsonschema 2.6.0 marshmallow 2.19.2 marshmallow-polyfield 3.2 more-itertools 5.0.0 mpmath 1.1.0 ndg-httpsclient 0.5.1 networkx 2.3 ntlm-auth 1.3.0 numpy 1.16.3 pandas 0.24.2 Pillow 6.0.0 pip 19.1.1 ply 3.11 psutil 5.6.2 pyasn1 0.4.5 pycparser 2.19 pyeda 0.28.0 pylatexenc 1.4 pyOpenSSL 19.0.0 pyscf 1.6.1.post1 pytest-runner 4.4 python-dateutil 2.8.0 pytz 2019.1 qiskit 0.10.1 qiskit-aer 0.2.0 qiskit-aqua 0.5.0 qiskit-chemistry 0.5.0 qiskit-ibmq-provider 0.2.2 qiskit-ignis 0.1.1 qiskit-terra 0.8.0 Quandl 3.4.8 requests 2.22.0 requests-ntlm 1.1.0 scikit-learn 0.21.1 scipy 1.2.1 setuptools 41.0.1 six 1.12.0 sympy 1.4 torch 1.1.0 urllib3 1.25.2 websockets 7.0 wheel 0.33.4 ```

Now, to my first half of the question. Do you think it is still possible to run qiskit 0.7.0 with Python 3.5.4 on a jupyter notebook? / Have any insights on why I might be facing this IBMQ.enable_account() issue with this setup? Please note that I am only concerned about running qiskit 0.7.0 until I finish this book that I am reading, after that I will move on to latest version of qiskit thanks to you :)

O

Matt-Stypulkoski commented 5 years ago

That error looks as though there could have been some sort of connection issue. I would suggest renewing your api token. You can do that by:

I would then IBMQ.delete_accounts() to delete any accounts you currently have saved, (You would probably want to do this after Regenerating your token anyway). Then try IBMQ.enable_account(<new_api_token>) with the new token and see if you still receive any errors.

nonhermitian commented 5 years ago

Closing this as it is not clear if this is actually our code, or some other issue. If this persists feel free to reopen.