Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What does it mean: Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: astral in and when i tried to run

imageimage

What does it mean:

Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: astral in

and when i tried to run the bottom code it said that " no module named astral"

as the python3, i tried the code line

!python3 install astralĀ 

but it gave the same as : !pip install astral

File + Edit View Insert Cell Kernel Widgets Help Run In [100] # your code here !pip install astral Markdown Validate Use a command line inside the notebook here to pip install the module astral from pypi (see https://pypi.org/project/astral/ for information about this module if you're curious) = Show Usage Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: astral in /home/kytran/.local/lib/python3.9/site-packages (3.2) In [82]: from astral.geocoder import database, lookup from astral.sun import sun import datetime nbdiff Below is some code to use astral... you don't need to do anything except change the date so that you calculate the sunrise time in San Diego on your birthday in 2022. the_day datetime.date( ### REPLACE THIS DATE 2022,11,12 ### REPLACE THIS DATE ) I think its easy enough to figure out what you need to do just by reading the code, but if its not clear then take a look at the documentation for astral here https://astral.readthedocs.io/en/latest/ # Uses a database of place names to lookup location information like lattitude/longitude #which can be used to calculate things like sunrise/sunset time city lookup ("San Diego", database ( ) ) Trusted Python 3 (ipykernel) O #calculate solar times for the city on the given date S sun(city.observer, date=the_day, tzinfo= 'America/Los_Angeles') print ((

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management

Authors: Richard L. Daft

12th edition

978-1118582695, 1118582691, 9781118801277, 111880127X, 978-1285861982

More Books

Students also viewed these Programming questions