diff --git a/recipes/python.rb b/recipes/python.rb index 7d8f2e1..bd4d269 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -19,7 +19,14 @@ #note that this is using the fkrull/deadsnakes repository listed above bash 'install python3.6' do code <<-EOH - sudo apt install python3.6 python3.6-dev -y; + sudo apt-get purge python3.6; + sudo apt-get autoremove && sudo apt-get autoclean; + sudo apt install python3.6 -y --force-yes; + sudo apt install python3.6-dev -y --force-yes; + sudo apt install python3.6-venv -y --force-yes; + sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 + + sudo cp /usr/lib/python3/dist-packages/apt_pkg.cpython* /usr/lib/python3/dist-packages/apt_pkg.so; EOH flags "-x" -end \ No newline at end of file +end