Unable to create a python 3.6.1 environment for capstone project

I am trying to complete the Futures Trading: Concepts & Strategies capstone project. However I am unable to create a python 3.6.1 environment on my MacBook Air with M1 silicon chip. Any suggestion on how to proceed?

Hi Gabriele,



You are required to create Python 3.6.8 environment for the project. Please use the below command in your terminal to create a new enviornment.

conda create -n myenv python=3.6.8

Hope this helps.

Thanks,
Satyapriya

Thanks tried but still get an error. 





redwall@Gabrieles-Air ~ % conda create -n myenv python=3.6.8

Collecting package metadata (current_repodata.json): done

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

Collecting package metadata (repodata.json): done

Solving environment: failed



PackagesNotFoundError: The following packages are not available from current channels:



  - python=3.6.8



Current channels:



  - conda-forge/osx-arm64

  - conda-forge/noarch



To search for alternate channels that may provide the conda package you're

looking for, navigate to



    https://anaconda.org



and use the search bar at the top of the page.





I feel that it is not possible to install the enviromnet on the M1 chip. any other way to run the programs?

Hi Gabriele,



You can also run the program on other versions (such as 3.8 or 3.9, whichever is supported on your system). In case you are stuck with some part of the code due to the different version, feel free to reach out to us.



Thanks!

Thanks I have tried but pyfolio does not run on my python 3.9. Is there a way to get it running on python 3.9?

Hi Gabriele,



Pyfolio is compatible with python 3.9. There can be some issue while dealing with the parameters. Can you share your code so that we can look into it.



Thanks!

Thanks a lot for your reply. I get an error primarily during the installation of scipy dependency. I have tried to use the method descibed in this link. The error I get in included in my comment (Redwall13)

Hey Gabriele,



Python comes with an inbuilt package management system, pip. Can you try to install the package using this? You simply need to run the below line in your jupyter:



!pip install pyfolio



Hope this would help.